Better HN
topnewbestaskshowjobs
Log inSign up

wbport

1 karma · joined Feb 15, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

This site finds the midpoint between date/times as well as the difference between them. Also, time units can be added or subtracted from one date/time to get another. All of this is done through the JavaScript Date object which leaves to trace of the original time zone in arriving at the offset in milliseconds since 1970. If doing the difference between dates in days, round the difference to the nearest day to avoid problems with daylight savings time not being in effect for one of them. https://wjporter.com/misc/MidPoint.htm