<i>"clock scan" allow / and . date-delims</i>.
by
.
D 2001-12-06T04:18:15
J assignee dkf
J cmimetype text/plain
J comment The\s"clock\sscan"\scommand\sshould\sallow\s"/"\sand\s"."\sas\s\ndate\sdelimeters.\sI'm\sencountering\sdates\sfrom\sSQL\s\ndatabases\sformatted\sin\sthis\sway,\sand\speriods\sin\sthe\s\ndate\sare\sincreasing\spopular\sin\sglobalized\sprograms.\n\nEg:\sallow\s"2001.12.21"\sand\s"2001/12/21".\s\nCurrently\s"2001-12-21"\swill\swork\sfine.\n\nToday,\sI\sreplace\s/\sand\s.\swith\s-\sto\smake\sthese\sdate\s\ntypes\swork\swith\sclock\sscan,\slike\sso:\n\n\s\s\sregsub\s-all\s{/}\s$sql_date_text\s{-}\sunSlashedDate\n\s\s\sregsub\s-all\s{\\.}\s$unSlashedDate\s{-}\sunSlashedDate2\n\s\s\sset\sseconds\s[clock\sscan\s$unSlashedDate2]\n\nthis\sseem\slike\sa\sfairly\sstraightforward\schange\sto\sthe\s\nC\scode\sfor\s"clock\sscan".\sI\scan\smake\sthe\spatch\sand\s\nsubmit\sit,\sif\sthat's\spreferred.\n\n-john\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter jbuckman
J subsystem 16.\sCommands\sA-H
J title "clock\sscan"\sallow\s/\sand\s.\sdate-delims
J type RFE
K 489705ffffffffffffffffffffffffffffffffff
U jbuckman
Z edd858c04d1f97d5772fca2b2b177662