Skip to main content

Convert dates between Unix, Gregorian, and International Fixed Calendar

Project description

UnixToIFCTime

A Python script to convert Unix timestamps to the International Fixed Calendar (IFC) format and vice versa.

Note: This implementation deviates from the original IFC proposal by adding leap year days (Year Day and Leap Day) to the end of the year, rather than placing them within the calendar as originally suggested.

Features

  • Converts Unix timestamps to IFC dates.
  • Accepts date input in YYYY-MM-DD format and outputs the corresponding IFC date.
  • Supports leap years and special days (Leap Day, Year Day).

Usage

python unixToIfcTime.py [-d DATE] [-u UNIXTIME]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ifcdate-0.1.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ifcdate-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file ifcdate-0.1.2.tar.gz.

File metadata

  • Download URL: ifcdate-0.1.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for ifcdate-0.1.2.tar.gz
Algorithm Hash digest
SHA256 30712e921c1707f55a8b77392587caf29ca9376692bf4fa2e27c3e10381dbdec
MD5 d37c6c9540a263557000ec84c110a8eb
BLAKE2b-256 e759022ed7313121978deb21208039a861b115450fae24b7a61949aef66f3656

See more details on using hashes here.

File details

Details for the file ifcdate-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ifcdate-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for ifcdate-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c700816e4c99ed0a352abcf384dceadf68d3438cbf7db6c146e9e1a02cd5dde7
MD5 443b14403eaf077cb6e04cc9c9b2df9d
BLAKE2b-256 0a93810c25ed3d37f34746d8f00744b8c8b294f505d6d5f388743154fa0119f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page