OSCalendarTimeToTicks

Syntax

#include <revolution/os.h>

typedef struct OSCalendarTime
{
    int sec;    // seconds after the minute [0, 61]
    int min;    // minutes after the hour [0, 59]
    int hour;   // hours since midnight [0, 23]
    int mday;   // day of the month [1, 31]
    int mon;    // month since January [0, 11]
    int year;   // year [1, ...]
    int wday;   // days since Sunday [0, 6]
    int yday;   // days since January 1 [0, 365]

    int msec;   // milliseconds after the second [0,999]
    int usec;   // microseconds after the millisecond [0,999]
} OSCalendarTime;

OSTime OSCalendarTimeToTicks(OSCalendarTime* td);

Arguments

td Pointer to the OSCalendarTime function to get the time.

Return Values

An OSTime (64-bit) type integer value.

Description

Converts time representation from calendar time to ticks (in OS_TIMER_CLOCK Hz).

See Also

Time Functions, OSTicksToCycles, OSTicksToSeconds, OSTicksToMilliseconds, OSSecondsToTicks, OSMillisecondsToTicks, OSMicrosecondsToTicks, OSNanosecondsToTicks, OSTicksToCalendarTime

Revision History

2006/03/01 Initial version.


CONFIDENTIAL