<i>clock scan of leapsecond: wrong result in 8.6 and 9.0</i> status still Open with 3 other changes
by
.
D 2024-11-15T01:16:24.254
J icomment No\smatter\show\s(`-valid\s0`\sor\s`[string\smap\s{23:59:60\s23:59:59}]`)\sor\sother\spre-processors,\sthe\sresult\smay\sbe\swrong\sor\snot\s(but\sit\sis\sand\sremains\susers\sdecision)...<br/>\r\nFor\sinstance,\sbecause\sthe\sthing\syou\swant\sto\simplement\sis\ssimply\snot\ssupported\sin\sunix\stime\sat\sall.\sIt\sis\squasi\slike\san\sundefined\sbehavior\s-\sbasically\syou\sdon't\sknow\swhether\s`2016-12-31\s23:59:60`\sis\s1483228800\sor\s1483228799,\sbecause\sit\ssimply\sdoesn't\sexist\sin\ssense\sof\sunix\stime\s(or\snobody\sknowns\swhich\ssecond\ssince\sepoch\sit\sreally\smean\s-\sthe\sfirst\sor\sthe\snext).\sMaybe\sit\sis\snot\simportant,\sbut\sperhaps\sit\sis,\stherefore\s-\sUB.\r\n\r\nWith\sother\swords,\sit\sis\slike\sDST\shole,\sfor\sinstance\sthe\sdates\s`"2024-03-31\s02:00:00\sCET"`\sor\s`"2024-03-31\s02:59:59\sCEST"`\ssimply\sdon't\sexist\sin\sthat\stimezone,\sbecause\safter\s`"01:59:59"`\sfollows\s`"03:00:00"`:\r\n\r\n<code><pre\sstyle="padding-left:20pt">\r\n%\sclock\sformat\s1711846799\s-format\s"%Y-%m-%d\s%H:%M:%S"\s-timezone\s:Europe/Berlin\r\n2024-03-31\s01:59:59\r\n%\sclock\sformat\s1711846800\s-format\s"%Y-%m-%d\s%H:%M:%S"\s-timezone\s:Europe/Berlin\r\n2024-03-31\s03:00:00<br/>\r\n%\sclock\sscan\s"2024-03-31\s02:00:00"\s-format\s"%Y-%m-%d\s%H:%M:%S"\s-timezone\s:Europe/Berlin\r\n<b\sstyle="color:red;">unable\sto\sconvert\sinput\sstring:\sinvalid\stime\s(does\snot\sexist\sin\sthis\stime-zone)</b>\r\n%\sclock\sscan\s"2024-03-31\s02:59:59"\s-format\s"%Y-%m-%d\s%H:%M:%S"\s-timezone\s:Europe/Berlin\r\n<b\sstyle="color:red;">unable\sto\sconvert\sinput\sstring:\sinvalid\stime\s(does\snot\sexist\sin\sthis\stime-zone)</b>\r\n</pre></code>\r\n\r\nAnd\syou\sseem\sto\simplement\ssimilar\sthing\sfor\sthe\sleap\ssecond,\swhich\salso\sdoesn't\sexist\sin\ssense\sof\sclock\sand\sPOSIX\stime.\r\nI\sknow\sthat\sleap\ssecond\scannot\sbe\scompared\swith\sDST,\sbut\ssimilar\sis\shere\sthat\sthis\sis\sa\snon-existing\sthing,\sso\sto\ssay\sa\sphantom,\sand\sit\sshall\sremain\sso\s(at\sleast\swith\sdefault\sclock\sfacilities).\sAnd\sby\sthe\sway,\sit\sis\salso\saffected\sby\s`-validate`\sparameter,\sbecause\sboth\sof\sabove\smentioned\sscans\swill\swork\swith\s`-valid\s0`\s(and\sgenerate\s1\shour\sdeviation\sby\sformatting\sback)\sand\stherefore\salso\shere\shave\sa\scertain\ssimilarity,\sin\ssense\sof\swrong\sunix\stime.\r\n\r\nAnyway\sI\ssee\sthis\sdefinitively\sas\san\senhancement\sand\snot\sas\sbug\sfix.\sBut\sif\sit\sis\simprovement,\sthen\sproperly\s(with\sreal\sUT-time\svalues,\swithout\sa\sphantom\sbehavior,\swith\scorrect\sleap\stables\setc).
J login sebres
J mimetype text/x-markdown
K f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
U sebres
Z 485c6b2e3e8d6e63f79aac8921ab29cd