Pearce Wiki

Site Tools

ttrack:start

This is an old revision of the document!

TTrack

Time/Date Parsing

Basic tokens can be implemented with strptime(), but (in Python at least) unparsed suffix data cause an exception which means we need to know in advance how many tokens to consume. This is the reason why we need both <date> and a <year> tokens, for example.

<time>

• %I:%M:%S%p
• %I:%M%p
• %H:%M:%S
• %H:%M

<date>

• %Y-%m-%d

<year>

• %Y
• %y

<month>

• %m
• %b
• %B

<monthday>

• %d