Skip to content
Tcl Source Code Artifact [e62f7c3afd]
Login

Artifact [e62f7c3afd]

Artifact e62f7c3afd6aa82683cda6c9e9d626a7495cf232:

Ticket change [e62f7c3afd] - Ticket [2796593fffffffff|2796593fff] <i>clock scan returns wrong result</i> status still Open with 4 other changes by kennykb on 2009-05-26 08:40:13.
D 2009-05-26T08:40:13
J icomment The\ssymptoms\slook\sas\sif\ssomeone\sconfigured\s/etc/localtime\sto\spoint\sto\sa\stime\szone\sin\s/usr/share/zoneinfo/right.\s\sThis\swill\scause\sthe\ssystem\slibrary\sto\sreturn\sa\scount\sof\sseconds\sfrom\sthe\sEpoch\sthat\sincludes\sall\sthe\sleap\sseconds\sthat\shave\sbeen\sadded\sto\sthe\sclock\ssince\sthen\s-\smaking\sit\s34\sseconds\s(your\ssystem\sshows\s33,\sso\sit\sprobably\smissed\sthe\slast\sone)\sdifferent\sfrom\sUTC.\n\nSome\stimekeeping\sfolk\sthink\sthat\stracking\sthe\sleap\sseconds\sis\sideal\sbehaviour,\sbut\sit\sis\sNOT\swhat\sPosix\sspecifies,\swhich\sis\swhy\sthe\s'right'\stime\szones\saren't\senabled\sby\sdefault.\sTcl\sdepends\son\sPosix\sbehaviour;\sits\smodel\sof\sleap\sseconds\sis\sto\saccept\sthe\sjump\sand\ssmooth\sover\sit.\shttp://www.cl.cam.ac.uk/~mgk25/uts.txt\sgives\sthe\sbasic\sidea.\n\nIgnoring\sleap\sseconds\shas\scompelling\sadvantages\sfor\scalculation,\sand\svery\sfew\sdisadvantages\sin\sday-to-day\susage.\sUnless\syou\scan\sget\syour\ssystem\sclock\sback\sto\sPosix\scompliance,\sI'm\safraid\sthat\sthe\slocaltime\sconversion\sis\slikely\sto\scontinue\sto\sbe\n33\s(34?)\sseconds\soff.\n
J login kennykb
J mimetype text/plain
J username kennykb
K 2796593fffffffffffffffffffffffffffffffff
U kennykb
Z 997c037ba034053570035f193b1f3663