#yearday()
DESCRIPTION
returns the current yearday (1-366)
or:
returns the yearday (1-366) of the given datevalue
SYNOPSIS
#yearday()
or:
#yearday(d)
ARGUMENTS
none
or:
d - a datevalue, or datevalue expression
EXAMPLES
# pikt +C 'output $text(#yearday())'
171
# pikt +C 'output $text(#yearday(#today()))'
171
rule // do only every 15 days
if #yearday() % 15 == 0
...
fi
begin // since the critical alert is run several times daily, and
// we only want this warning once daily, we need to put in
// place the following "circuit breaker"
set #yrdy = #yearday(#now())
if #yrdy == %yrdy
quit
endif
SEE ALSO
#day()
#daynumber()
#month()
#monthnumber()
#weekday()
#year()
#yearweek()
$dayname()
$monthname()
Numerical Functions
String Functions