Mikrotik date and time calculations
Posted by jpluimers on 2017/08/29
Some ideas for date and time calculation:
- date [WayBack]
- chrono-Compatible Low-Level Date Algorithms [WayBack]
- c++ – Math to convert seconds since 1970 into date and vice versa – Stack Overflow [WayBack]
It should get better (and verifyable) implementations in stead of these Julian (not Gregorian!) date conversions:
- I did it! Script to compute UNIX time! – MikroTik RouterOS [WayBack]
- Way to convoluted function: Useful Universal Date Converter function – MikroTik RouterOS [WayBack]
Notes:
- RouterOS keeps the gmt-offset (boy why didn’t they just call this UTC-offset?): Manual:System/Time – MikroTik Wiki [WayBack]
- UTC count-up from 1970-01-01: http://www.timeanddate.com/countdown/to?p0=1440&year=1970&month=1&day=1&hour=0&min=0&sec=0
- UTC count-up from 1970-01-01: http://www.timeanddate.com/countdown/generic?iso=19700101T00&p0=1440
–jeroen






Leave a comment