libnx
Enumerations | Functions
time.h File Reference

Time services IPC wrapper. More...

#include "../types.h"
#include "../services/sm.h"

Go to the source code of this file.

Enumerations

enum  TimeType {
  TimeType_UserSystemClock,
  TimeType_NetworkSystemClock,
  TimeType_LocalSystemClock,
  TimeType_Default = TimeType_NetworkSystemClock
}
 Time clock type.
 

Functions

Result timeInitialize (void)
 
void timeExit (void)
 
ServicetimeGetSessionService (void)
 
Result timeGetCurrentTime (TimeType type, u64 *timestamp)
 
Result timeSetCurrentTime (TimeType type, u64 timestamp)
 Sets the time for the specified clock. More...
 

Detailed Description

Time services IPC wrapper.

Author
yellows8

Function Documentation

Result timeSetCurrentTime ( TimeType  type,
u64  timestamp 
)

Sets the time for the specified clock.

Parameters
[in]typeClock to use.
[in]timestampPOSIX UTC timestamp.
Returns
Result code.