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-DDformat 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ifcdate-0.1.3.tar.gz.
File metadata
- Download URL: ifcdate-0.1.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
713c0cdd90027faa003ddccf426dc5302fef254aa5e3933a64839f49c01df3f7
|
|
| MD5 |
91ea984afcb1df3e072742546c2f64a9
|
|
| BLAKE2b-256 |
e80abe5e4bae75b6977f8bac63e91fe935736a9202d6bab1df6ab99b6dddcf8f
|
File details
Details for the file ifcdate-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ifcdate-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5799a9459274c4064cb3ec3d5e129bc2be06b845e353490d88c17b1c979345d
|
|
| MD5 |
afe6f38e285443602489e91a5bcde34d
|
|
| BLAKE2b-256 |
7f720e23b611a2bb380c2200d59e0a0163d03170fb86dbecca7985a8694b603d
|