#second()
DESCRIPTION
returns the current second (0-59)
or:
returns the second portion (0-59) of the given datevalue/timevalue
SYNOPSIS
#second()
or:
#second(d)
or:
#second(t)
ARGUMENTS
none
or:
d - a datevalue, or datevalue expression
or:
t - a timevalue, or timevalue expression
EXAMPLES
# pikt +C 'output $text(#second())'
52
# pikt +C 'output $text(#second(#now()))'
14
rule // parse the start time, set the reldur (real duration)
if #parse($sta, ":") == 2
set #stahr = #val($1)
set #stamn = #val($2)
else
set #stahr = 0
set #stamn = 0
fi
set #statv = #timevalue(#stahr, #stamn, 0)
if #statv
set #nowtv = #timevalue(#hour(), #minute(), #second())
else
set #nowtv = 0
fi
// for any start time parse failure, #reldur will be 0
set #reldur = #nowtv - #statv
SEE ALSO
#hour()
#minute()
#now()
#today()
#datevalue()
#timevalue()
Numerical Functions
String Functions