Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>doy()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DOY()

Syntax:     DOY([<expD>])

Arguments:  <expD> denotes the date for which to calculate the day of
            the year.

Returns:    A date value.
            The number of days to this date.  January 1 is number 1.

Usage:      This function is useful if automatic numbers are calculated,
            based on the day of the year, as in the case of some return
            authorization numbers.

Notes:      DOY() will automatically use the system date if no date
            argument is passed.  January 1 will return the number 1.  In
            leap years December 31 will be 366.  Otherwise it will be
            365.  An null date will result in 0.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Calculate the period between January 1 of
            * this year and the present day.
            * Warning!  Only operate within one year.

            ? DOY() - DOY(BOY())                && BOY() supplies
                                                && January 1



Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson