#yearweek()
DESCRIPTION
returns the current yearweek (1-53)
or:
returns the yearweek (1-53) of the given datevalue
SYNOPSIS
#yearweek()
or:
#yearweek(d)
ARGUMENTS
none
or:
d - a datevalue, or datevalue expression
EXAMPLES
# pikt +C 'output $text(#yearweek())'
24
# pikt +C 'output $text(#yearweek(#today()))'
24
rule // do only every four weeks
if #yearweek() % 4 == 0
...
fi
rule
output log "=logdir/week" . $text(#yearweek()) . ".log" $inlin
SEE ALSO
#day()
#daynumber()
#month()
#monthnumber()
#weekday()
#year()
#yearday()
$dayname()
$monthname()
Numerical Functions
String Functions