#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
 
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
View sample
PIKT macros