Skip to content
Tcl Source Code Artifact [1b4dec4b56]
Login

Artifact [1b4dec4b56]

Artifact 1b4dec4b56856edd86af976e347bc7e79367fcb644736f69aa97416df7ac5468:

Ticket change [1b4dec4b56] - Ticket [c03621bf9b262f8c|c03621bf9b] <i>[clock scan] this modifier, again</i> status still Open with 3 other changes by sebres on 2019-04-09 16:51:27.
D 2019-04-09T16:51:27.125
J icomment Trying\sto\sfix\sthat\sI\snoticed\sthat\sfixing\sof\splural\s"bug"\sdoes\snot\ssolve\sthe\sissue\s(it'd\ssometimes\sact\sas\snext\ssometimes\sas\scurrent\sunit,\srelated\sto\swhat\sit\sis).\r\n\r\nAdditionally\snoticed\sthat\sseveral\sother\scases\sare\s"wrong",\sso\se.\sg.\s"next"/"last"\sare\srelated\sto\stNEXT(1)/tUNUMBER(-1)\syacc\stokens,\swhat\scauses:\r\n<code><pre\sstyle="padding-left:\s10pt">\r\n%\sclock\sformat\s[clock\sscan\s"next\sJanuary"\s-gmt\s1\s-base\s1554818068]\s-gmt\s1\r\nThu\sJan\s09\s00:00:00\sGMT\s2020\r\n%\sclock\sformat\s[clock\sscan\s"last\sJanuary"\s-gmt\s1\s-base\s1554818068]\s-gmt\s1\r\nSun\sDec\s30\s00:00:00\sGMT\s2018\r\n</pre></code>\r\nwhere\ssecond\sresult\sis:\r\n<ul>\r\n<li>invalid</li>\r\n<li>would\sit\sbe\svalid\s(Jan\s01),\sit\swould\sin\swrong\syear\s(2019,\stry\sApril\sinstead\sof\sJanuary)</li>\r\n<li>if\sit\swould\sbe\scorrect,\sthere\sis\sadditional\sdifference\sbetween\stNEXT\sand\stUNUMBER:\sin\sone\scase\sday\sis\sretained\s(e.\sg.\sremains\s09),\sin\sother\s(tUNUMBER)\sit\sgets\struncated\s(mean\sat\sstart\sof\sunit).</li>\r\n</ul>\r\n\r\nThere\sare\smuch\smore\sambiguities:\sfor\sexample\s<code>last/next\sday</code>\swould\struncate\stime\s(so\sagain\sstart\sof\sthe\sunit),\sbut\s<code>last/next\shour</code>\swould\sNOT\struncate\sthe\sminute\s(just\san\sincrement\shour\srelated\sto\scurrent\sbase),\setc\spp.\r\n\r\nSo\sthe\sissue\sgrows\sfurther.\sI'll\stry\sto\sprovide\sproper\ssolution\sfor\sall\sthis\s(but\swould\sfix\sit\sonly\sin\smy\snew\sclock-engine\sor\srather\sin\ssomething\slike\sclock-speedup-cr3\sdoe\sto\scompat\sreasons).
J login sebres
J mimetype text/x-fossil-wiki
K c03621bf9b262f8c97fe4fbfc077ac8e1b2b7a82
U sebres
Z 5771999de10c481a012375eafeb9d849