#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
 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
Learn about
the Pikt script
init section