OSTicksToCalendarTime

Syntax

#include <cafe/os.h>

void OSTicksToCalendarTime(OSTime ticks, OSCalendarTime* td);

Parameters

ticks 64-bit OSTime type integer value.
td Pointer to the OSCalendarTime type that gets calendar time.

Return Values

None.

Description

Converts time from ticks (at OS_TIMER_CLOCK Hz) to calendar time.

To get the current date and time, call the OSTicksToCalendarTime function as shown below.

    OSCalendarTime td;
    
    OSTicksToCalendarTime(OSGetTime(), &td);

Do Not Call From

None.

See Also

OSCalendarTime
OSTicksToCycles
OSTicksToSeconds
OSTicksToMilliseconds
OSSecondsToTicks
OSMillisecondsToTicks
OSMicrosecondsToTicks
OSNanosecondsToTicks
OSCalendarTimeToTicks

Revision History

2013/05/08 Automated cleanup pass.
2012/08/01 Cleanup Pass
2010/08/30 Initial version.


CONFIDENTIAL