$dayname()
DESCRIPTION
for the current day, or the given day number (1-7), returns the day name
("Sunday", "Monday", ...)
SYNOPSIS
$dayname()
or:
$dayname(i)
ARGUMENTS
none
or:
i - an integer, or integer expression, from 1 to 7
EXAMPLES
# pikt +C 'output $dayname()'
Wednesday
# pikt +C 'output $dayname(6)'
Friday
begin
if $dayname() eq "Saturday" || $dayname() eq "Sunday"
quit
fi
weekend ( $dayname() eq "Saturday" || $dayname() eq "Sunday" )
weekday (! =weekend)
rule
output log "=logdir/" . $dayname() . ".log" $inlin
SEE ALSO
$monthname()
#day()
#daynumber()
#month()
#monthnumber()
#weekday()
#year()
#yearday()
#yearweek()
Numerical Functions
String Functions