New Time, New Clock

New tick, new…… no we aren’t doing poetry here.

If you’ve used JimmyNet OmniTime, you may have noticed the “New Time” clock. This is a clock based on “New Time” from the YouTube Series “TrendWatch“. TrendWatch is a great series, and I would recommend watching it.

But, it’s a fictional timescale, so I had to map it to the real world. In TrendWatch New Time is caused by the New Local Field (big bad unexplained thing in the sky) causing various issues at “intervals”. To map this to the real world, I decided to map all of the intervals to a single day (in UTC).

There are 5 intervals: 12, 3, 8, 10, and ~11. To map these to a day, I split the day into 10 decimal hours and then assigned each hour to an interval. 3 and ~11 are 3 decimal hours long, whereas the others are only one. Additionally, the New Time Date is simply the number of days since TrendWatch came out.

Below is the python code for calculating the New Time Date (ntd), New Time Interval (nth), and New Time Second (nts)

   now = datetime.datetime.now(datetime.timezone.utc)

    dayMs = int(now.date().strftime('%s'))
    dayMs = int(dayMs * 1000)
    nowMs = int(time.time_ns() / 1000000)

    msOfDay = (nowMs - dayMs) #+ 27000

    h = int(msOfDay / 8640000)
    m = int((msOfDay - (h * 8640000)) / 86400)
    s = int((msOfDay - (h * 8640000) - (m * 86400)) / 864)

    # NEW TIME
    ntd = (now.date() - date(2016, 1, 31)).days
    nth = '12'
    nts = 0
    if h == 0: 
        nth = '12'
        nts = int((msOfDay - (h * 8640000)) / 8640)
    elif h == 1:
        nth = '3'
        nts = int((msOfDay - (1 * 8640000)) / (8640 * 3))
    elif h == 2:
        nth = '3'
        nts = int((msOfDay - (1 * 8640000)) / (8640 * 3))
    elif h == 3:
        nth = '3'
        nts = int((msOfDay - (1 * 8640000)) / (8640 * 3))
    elif h == 4:
        nth = '5'
        nts = int((msOfDay - (h * 8640000)) / 8640)
    elif h == 5:
        nth = '8'
        nts = int((msOfDay - (h * 8640000)) / 8640)
    elif h == 6:
        nth = '10'
        nts = int((msOfDay - (h * 8640000)) / 8640)
    elif h == 7:
        nth = '~11'
        nts = int((msOfDay - (7 * 8640000)) / (8640 * 3))
    elif h == 8:
        nth = '~11'
        nts = int((msOfDay - (7 * 8640000)) / (8640 * 3))
    elif h == 9:
        nth = '~11'
        nts = int((msOfDay - (7 * 8640000)) / (8640 * 3))

Posted

in

by

Tags:

Comments

Leave a Reply

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