13.12.2018, 20:20
How do I calculate the time stamp of one hour? Example:
1/15/2018 at 3:00 p.m.?
1/15/2018 at 3:00 p.m.?
Originally Posted by ******
I didn't say it was impossible, just hard. Some things you've missed:
Daylight Savings - Even England isn't in GMT at the moment Awkward Countries - Some of Austraila is +9.5 or +10.5 depending on season, other parts are + other numbers all year (one tiny part is +8.45). Some areas are +5.45, +12.45, +13, +14! Date - Timezones can make the day different in different areas. Changes - Russia abolished daylight savings just last year, and the day it starts changes regularly in other countries. Leap Years - I'm not entirely convinced looking at the code that you've got them right (in fact I know you don't because leap years are not that simple). Leap Seconds - They exist! Calendar - What about Jews? It's the year 5772 for them. There is a central website (can't remember where) that maintains a list of all these things, Linux and Mac both sync of this one resource, Microsoft have their own to maintain a list of date information. |