[Math][Python] Mixed radix, part II

(Previously.)

There was power outage, but now it's OK.

How can you determine its moment? Time now is 19:42. Your home router's uptime is 3h53m.

>>> now=19*60+42   # 19:42
>>> uptime=3*60+53 # 3:53
>>> minutes_from_0000_router_started=now-uptime
>>> minutes_from_0000_router_started//60
15
>>> minutes_from_0000_router_started % 60
49
>>>

So it was 15:49 when router started.

(the post first published at 20221023.)


List of my other blog posts.

Subscribe to my news feed

Yes, I know about these lousy Disqus ads. Please use adblocker. I would consider to subscribe to 'pro' version of Disqus if the signal/noise ratio in comments would be good enough.