.
D 2006-09-29T15:44:18
J assignee kennykb
J cmimetype text/plain
J comment System:\nWindows\sXP\sSP2\srunning\stcl/tk\s8.4.1\sfrom\scygwin.\n\nPosted\son\scomp.lang.tcl\sby\sccdrbrg\s(Thurs,\sSep\s28\s2006\n9:07\sam)\n\nI\shave\swritten\sa\ssimple\sISO\s8601\sformat\sclock\sdisplay\n(source\sbelow).\n\nI\shave\snoticed\sthe\stime\svalue\swill\screep\sahead\sof\sthe\nsystem\stime\sby\sas\nmuch\sas\s30\sseconds\seach\sday\srunning.\s\sI\sdo\snot\nunderstand\swhy.\s\sI\nbelieve\s[clock\sseconds]\squeries\sthe\ssystem\stime\sand\sis\nevaluated\seach\ntime\sthe\safter\sevent\sis\striggered.\s\sThe\sfact\sthat\sthe\ndisplayed\stime\ngets\sahead\sof\sthe\ssystem\stime\sis\sstrange.\n\nAny\shelp\swould\sbe\smuch\sappreciated.\n\nChad\n\nSystem:\nWindows\sXP\srunning\stcl/tk\s8.4.1\sfrom\scygwin.\n\nSource:\n\nvariable\sdate;\n\nproc\siso8601date\s{\s\s}\s{\n\s\sglobal\sdate;\n\n\s\sset\sseconds\s[clock\sseconds];\n\s\sset\sdate\s[clock\sformat\s${seconds}\s-gmt\s1\s-format\n{%Y-%m-%dT%TZ}];\n\n\s\safter\s500\siso8601date;\n\n};\n\niso8601date;\n\npackage\srequire\sTk;\n\nwm\sprotocol\s.\sWM_DELETE_WINDOW\s{\sexit\s};\nwm\stitle\s.\s"ISO8601\sDate";\n\nlabel\s.l\s-textvariable\sdate\s-font\s{Arial\s12\sbold};\npack\s.l\s\s-padx\s20;\n\nwm\sresizable\s.\s0\s0;\n\nbind\s.l\s<Double-Button-1>\s{\n\s\sclipboard\sclear;\n\s\sclipboard\sappend\s[.l\scget\s-text];\s\n};\n\n\n\nReply\sfrom\sKevin\sKenny\s(Thurs,\sSep\s28\s2006\s9:18\spm)\n\nThere's\ssomething\sgone\swrong\swith\sthe\shigh-resolution\ntimer\sand\sthe\nway\swe\ssynchronize\sthat\sto\sthe\ssystem\sclock.\n\nPlease\slog\sa\sbug\son\sthis\sat\sSourceForge.\s\sIt\smay\sbe\sa\nfew\sweeks\sbefore\nI\scan\sgive\sit\sa\sproper\slook,\sbecause\sI\shave\stravel\ncoming\sup.\s\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter ccdrbrg
J subsystem 03.\sTimer\sEvents
J title Clock\sCreep\susing\s[after]\son\sWindows
J type Bug
K 1567838fffffffffffffffffffffffffffffffff
U ccdrbrg
Z fd89c27ca447d7be9963e921ff437070