Skip to main content

Return a date in the format of the Imperial Calendar

Project description


Imperial Dating System converter

Based on the information from the Wiki.

Usage

Creating an instance of the object with no parameters will convert the current date (at the moment).

from pydate40k.Date40k import Date40k

d = Date40k()
print(d)
>>> 944 019.M3

Using a date string with the format "%Y-%m-%d %H:%M:%S" will convert that date, on any invalid format, the current date will be returned instead.

from pydate40k.Date40k import Date40k

d = Date40k("1999-05-11 13:00:00")
print(d)
>>> 360 999.M2

GW, Games Workshop, Citadel, Black Library, Forge World, Warhammer, the Twin-tailed Comet logo, Warhammer 40,000, the ‘Aquila’ Double-headed Eagle logo, Space Marine, 40K, 40,000, Warhammer Age of Sigmar, Battletome, Stormcast Eternals, White Dwarf, Blood Bowl, Necromunda, Space Hulk, Battlefleet Gothic, Dreadfleet, Mordheim, Inquisitor, Warmaster, Epic, Gorkamorka, and all associated logos, illustrations, images, names, creatures, races, vehicles, locations, weapons, characters, and the distinctive likenesses thereof, are either ® or TM, and/or © Games Workshop Limited, variably registered around the world. All Rights Reserved.

Project details


Release history Release notifications

This version

0.1

Download files

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

Files for pydate40k, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pydate40k-0.1-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pydate40k-0.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page