Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated
by iso8859-1 on Sunday November 19, 2023 @11:43AM
(#38334387)
Even better, use Monrovia in the 70s. They had an offset of 44m30s.[0]
>>> datetime(1972,1,1,tzinfo=ZoneInfo('Africa/Monrovia')).isoformat()
'1972-01-01T00:00:00-00:44:30'
[0]: https://en.wikipedia.org/wiki/Time_in_Liberia#History
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated
by lb1lf on Sunday November 19, 2023 @11:54AM
(#38334543)
And, of course, there's the (hopefully apocryphal) story of the French initially referring to GMT as 'Paris time minus nine minutes and twenty-one seconds'.
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated
by LegionMammal978 on Sunday November 19, 2023 @12:59PM
(#38335532)
As it happens, this story isn't apocryphal at all! One can readily find the original law, which was enacted on March 9, 1911, and published in the Journal officiel of March 10, 1911 [0]:
> Article unique. — L'heure légale en France et en Algérie est l'heure, temps moyen de Paris, retardée de neuf minutes vingt et une secondes.
The decree which finally replaced it was made on August 9, 1978, and published on August 19, 1978 [1]:
> Art. 2. — Sur l'ensemble du territoire de la République française, le temps légal (ou heure légale) est défini à partir du temps universel coordonné (UTC) établi par le bureau international de l'heure.
[0] https://gallica.bnf.fr/ark:/12148/bpt6k2022333z/f2.item
[1] https://www.legifrance.gouv.fr/jorf/id/JORFTEXT000000880128
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated
by midasuni on Sunday November 19, 2023 @05:53PM
(#38339378)
When I built a live clock for some new CasparCG based graphics for a major TV program out of singapore some years back, a colleague reviewing it in London tried to trick it with a Nepal offset — apparently they’d run into an issue with the Viz system they used in 2015 when there were a lot of lives from Nepal.
Obviously it worked fine, as did Chatham Island.
I make sure to test with Nepal time whenever I'm testing date/time stuff now.