Hey guys, I was on a Facebook page where people were asking how to convert/create Imperial Dates, after reading how to do it, I figured it was easy enough to turn into a script and put it here for anyone to use!

Just select the source, hour, Day, Month, and type a Year and hit Go!

Source/Check Number:

Hour:

Day:

Month:

Year:

If you have any suggestions or comments, leave them below or let me know via email. me (at) kingsley-muir.com

16 thoughts on “40k – Imperial Date Calculator”

  1. I have discovered a flaw in either the calculation used. Any time/date after 3PM on December 30th returns a work-cycle greater than 1000. It should cycle back to 001 and iterate the year at that point. Granted, this means the Imperial Year starts 33 hours before our current year, but that is what the calculator says.

  2. Just to note a bug in the calculator, it is not accounting for leap years.

    For example, today 12 of November is the 317th day of the year as 2020 is a leap year. The calculator however is treating it as day 316, which would be accurate for non-leap years.

    Just remember when accounting for it, that any potential leap year falling on a century mark has to also be divisible by 400 to be a leap year.

  3. There is still a bug with determining the date at the end of the year.
    Source/Check Number:
    Terra

    Hour:
    9pm / 2100h

    Day:
    31

    Month:
    December

    Year:
    2020

    Calculate
    The Imperial Date is: 01001020.M03

  4. Ok I’ve found the problem.

    The 40k calendar doesn’t account for leap years at all. – I’ve made this calendar account for leap years using our current understanding of leap years.

    Therefore the Makr constant was also wrong, as it was attempting to work out the 1000 divisions of 365 days. There is another one to account for leap years also.

Leave a Reply

Your email address will not be published. Required fields are marked *