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

Re: Military time (whoops!)



Robert Holmgren wrote:

Solution is to go back to using military time,:

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SX01,{<}VA$MT{>}{>}[BX_]d mt=1[Q2_]{<}SX02,{<}VA$TM{>}{>}[
BX_]d mt={<}PV01{>}[Q2_]{<}SV01,{027}X{>}{<}SX03,{<}VA|02{>}{
{062}}{<}SV04,{>}{<}CUA,03{>}{<}XS02,01,,05,00{>}{<}IF{<}VA{021}0
5{>}>0{>}{<}SX04,{<}IS04{>}+{<}IS05{>}{>}{<}EI{>}{<}SX02,{<}I
S00{>}{>}{<}LBA{>}{<}IF{<}VA|04{>}<4{>}{<}SX04,"0"+{<}IS04{>}
{>}{<}EI{>}{<}PR@04{>}{<}EX{>}[cr|lf]
-nd
XPLeNCODE
This is just what I need, and I'm trying to understand
it, hampered by the fact that I cannot seem to get to
work on it in the AM to see how that affects the
intermediate results. Two questions, if I may:
1. {<}SV01,{027}X{>}: This means that any character
except any single character is saved to SG 02, no? That
seems counter-intuitable, but apparently when SG 02 is
then used as the parser it results in the first char of
the parsed string being saved to the parsing element
(normally the 2d item in the parse code)?? A very neat
trick, and how did you ever figure it out?
2. What on earth does {<}CUA,03{>} mean? I've been
through both manuals, Tyson's book, and XPL.TXT and
cannot find it.
And thanks too to Carl for XPOLL and RUNCODE, which
make debugging one's own code and trying to figure out
what other people's code is doing and how MUCH easier.

--
Patricia M. Godfrey
PriscaMG@xxxxxxxx