.
D 2008-07-05T22:53:24
J icomment Logged\sIn:\sYES\s\nuser_id=496139\nOriginator:\sNO\n\nHmm,\syou\sseem\sto\sbe\sconcentrating\son\sunder-specification\sof\sthe\sinput\sstring,\swhile\sI\sthink\sit\sis\suseful\sto\sdefine\sit\sfor\sthe\sformat\sstring\sinstead\s(the\sonly\scircumstance\sunder\swhich\s"2008\s04"\sshould\sbe\sreasoned\sabout\sex\snihilo,\sis\sfree-form-scanning.\sWe\sare\snot\sin\sthis\scase,\swe\sdo\shave\sa\sformat\sstring.).\n\nThen,\swe\scan\sdefine\sthe\s"compatibility\sprinciple"\sin\sa\svery\ssimple\sfashion:\n\n\s\s[clock\sformat\s[clock\sscan\s$s\s-format\s$f]\s-format\s$f]\n\s\sis\salways\s"nearly\sequal"\sto\s$s\s(except\sfor\swhitespace\n\s\sand\sother\sirrelevant\schars)\n\nThis\smeans\sthat\sfor\s"underspecified\sformats"\slike\s"%Y\s%V",\s[clock\sscan]\sis\sfree\sto\s*choose*\s(as\sin\s"not\sspecified")\samong\sseveral\svalues,\sprovided\sthe\sabove\sequation\sholds.\sThis\schoice\scan\sbe\sdriven\sby\ssimplicity\sof\simplementation,\sor\sby\ssome\sobjective\sfunction\sto\soptimize\s(like\s"closest\sto\snow").\n\nKevin,\sdon't\syou\sthink\sthis\scompatibility\sprinciple\swould\sbe\sa\sgood\sguide\s?\nIf\swe\sadmit\sit,\sthen\sclearly\sthe\scurrent\sbehavior\swith\s%V\sis\sa\sbug...\n(But\splease\salso\snotice\sthat\senforcing\sit\swould\snot\srequire\sa\sTIP,\ssince\sI\scan't\simagine\sa\spurposeful\suse\sof\s"%Y\s%V"\sreturning\sa\sdate\sin\sthe\swrong\sweek\sfor\sexample).\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2010909fffffffffffffffffffffffffffffffff
U ferrieux
Z 3f81fd3abeda46b7e779bdba086b3194