Leading Zeroes in Time Parsing
Posted by Linda on 22 October 2010 11:00 AM
Use this to parse time values earlier than 10 AM if you need a fixed length time format of 6 spaces.

@varTime = @t
@varStrTime* = @varTime
@varIntTime# = @varStrTime
@varZero* = 0
@varStrTime = @(varZero+varStrTime) if ( @varIntTime < 100000 )

then you can parse the time as follows:

@varStrTime<2,0> is always two spaces for the hour
@varStrTime<2,2> is always two spaces for the minutes
@varStrTime<2,4> is always two spaces for the seconds

(0 vote(s))
Helpful
Not helpful

Comments (0)