Since 24 hours have 86400000 milliseconds, is is safe to call:
timestamp % 86400000
to get milliseconds passed during particular day? timestamp
is the unix epoch expressed in milliseconds, eg 1480771537000
.
I'm wondering whether this is a safe technique given the leap seconds are being added and subtracted every now and then? Will above code always return correctly the milliseconds during the day, independent of what timestamp
is?