[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Military time (whoops!)



** Reply to message from Carl Distefano  on Tue, 13 Jun 2006
22:21:44 -0400


> I forgot that Editor's default MT=1 doesn't append a leading
> zero to one-digit hours

Oof! You're right, and there are two other things that nag (I can't quite say
"insistently", but...): What if user has wiped out his SE:# separator string,
or somehow omitted the colon or period or whatever is used with MT=0 to
separate hours from minutes? And in a national version such as EuroScript
(believe it or not, I know some Euroscript users), what if post-meridien isn't
"PM"? Which is to say, maybe the sixth way, with a numeric {027}N parsing
wildcard, is the foolproof way to go? This is fairly pithy (ignores ):

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SX01,{<}VA$TM{>}{>}{<}SV02,{027}X{>}{<}SX03,{<}VA|01{>}{>}
{<}SV04,{>}{<}CUA,03{>}{<}XS01,02,,05,00{>}{<}IF{<}VA{021}05{
{062}}>0{>}{<}SX04,{<}IS04{>}+{<}IS05{>}{>}{<}EI{>}{<}SX01,{<}IS0
0{>}{>}{<}LBA{>}{<}IF{<}VA|04{>}<4{>}{<}SX04,"0"+{<}IS04{>}{>
}{<}EI{>}{<}PR@04{>}{<}EX{>}[cr|lf]
-nd
XPLeNCODE

-----------------------------
Robert Holmgren
holmgren@xxxxxxxx
-----------------------------