Skip to content
Tcl Source Code Artifact [9282e26440]
Login

Artifact [9282e26440]

Artifact 9282e264405bd5557685a0e64efd0a0afd6fb421f0321267eabf566979b7e387:

Ticket change [9282e26440] - Closed ticket [5116bce4bc0b59b4|5116bce4bc]: <i>clock: the distance between &quot;2004-03-28 01:00:00&quot; and &quot;2004-03-28 03:00:00&quot; is only ONE hour</i> plus 6 other changes by sebres on 2020-03-04 17:13:41.
D 2020-03-04T17:13:41.146
J closedate 2458913.21783734
J closer sebres
J icomment <blockquote><i>>\sThe\sclock\svalues\sof\s"2004-03-28\s01:00:00"\sand\s"2004-03-28\s02:00:00"\sare\sthe\ssame</i></blockquote>\r\n\r\nIt\sis\stime\szone\srelated\sthing,\sif\syou\sdon't\sspecify\sa\stimezone\s(or\s<code>-gmt\s1</code>)\sclock\swill\suse\sdefault\stimezone\s(and\sI\sassume\syou're\sin\sCET\stime\szone),\sand\sthe\stime\s<code>02:00:00</code>\sdoesn't\sexist\sat\s2004-03-28\sin\sthis\szone\sat\sall.\sIt\sgoing\sto\sDST\sswitch\sat\s02:00\sto\s03:00,\sso\syou\sare\sunable\sto\sget\sthis\stime.\r\n<code><pre\sstyle="padding-left:10pt">\r\n%\sclock\sformat\s[expr\s{1080435599\s+\s0}]\s-format\s{%Y-%m-%d\s%H:%M:%S}\r\n2004-03-28\s01:59:59\r\n%\sclock\sformat\s[expr\s{1080435599\s+\s1}]\s-format\s{%Y-%m-%d\s%H:%M:%S}\r\n2004-03-28\s03:00:00\r\n</pre></code>\r\nEither\sspecify\sUTC/GMT\sor\scorrect\s(or\svalidate)\sthe\stime\syou\swant\sto\sscan.\r\n\r\nAt\sthe\smoment\sclock\sscan\sdoes\snot\svalidate\sthe\stime\sat\sall\s(it\sis\ssimply\sadjusted\sto\sthe\snear\svalid\stime).\sIn\sthe\sfuture\sclock-version\swe'll\shopefully\sget\s<code>-valid</code>\sparameter\sto\senable\svalidation\sof\sspecified\sdate-time.\r\nSee\s[3475995]\sfor\smore\sinformation.\r\n\r\n<blockquote><i>>\sWhen\sconverting\sthis\svalue\sback\sinto\ssome\sreadable\sform,\sthis\sgives\s01:00:00...\sBut\swhen\sadding\s1\shour,\sthis\sgives\s03:00:00\s(instead\sof\s02:00:00)</i></blockquote>\r\n\r\nSure,\sbecause\sin\syour\stimezone\sit\sis\sreally\sso\sdue\sto\sDST\stime\sswitch\s(see\smy\sexample\sabove).\r\nIn\sGMT/UTC\sit\shave\sneither\sa\sDST-time\shole\snor\sa\sDST-time\sjump\sby\ssuch\sconversion.\r\n\r\nThus\sclosed\sas\sincorrect.
J login sebres
J mimetype text/x-fossil-wiki
J resolution Invalid
J status Closed
K 5116bce4bc0b59b45b7a5473ec01ed12acd83aa6
U sebres
Z 7a6addcddc3629eac28572eb9311e639