[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()