[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


NAME
    CheckDate -- Checks ClockData struct for legal date. (V36)

SYNOPSIS
    AmigaTime = CheckDate( Date )
    D0                     A0

    ULONG CheckDate( struct ClockData * );

FUNCTION
    Determines if the Date is a legal date and returns the number
    of seconds to Date from 01-Jan-1978 if it is.

INPUTS
    Date            - pointer to a ClockData structure.

RESULTS
    AmigaTime       - 0 if Date invalid; otherwise, the number of
                      seconds to Date from 01-Jan-1978.

NOTES

BUGS
    The wday field of the ClockData structure is not checked.

SEE ALSO
    Amiga2Date(), Date2Amiga()