10#include "../sf/service.h"
23 TimeType_UserSystemClock,
24 TimeType_NetworkSystemClock,
25 TimeType_LocalSystemClock,
26 TimeType_Default = TimeType_UserSystemClock,
124Result timeGetTotalLocationNameCount(
s32 *total_location_name_count);
Service object structure.
Definition service.h:14
s32 offset
Seconds relative to UTC for this timezone.
Definition time.h:44
u32 DST
0 = no DST, 1 = DST.
Definition time.h:43
u32 yday
0-based day-of-year.
Definition time.h:41
u32 wday
0-based day-of-week.
Definition time.h:40
Uuid source_id
An ID representing the clock source.
Definition time.h:57
s64 time_point
Monotonic count in seconds.
Definition time.h:56
TimeType
Time clock type.
Definition time.h:22
Result timeGetStandardSteadyClockTimePoint(TimeSteadyClockTimePoint *out)
Gets the timepoint for the standard steady clock.
Service * timeGetServiceSession_SystemClock(TimeType type)
Gets the Service object for ISystemClock with the specified TimeType. This will return NULL when the ...
Result timeGetStandardSteadyClockInternalOffset(s64 *out)
[3.0.0+] Gets the internal offset for the standard steady clock.
void timeExit(void)
Exit time. Used automatically during app startup.
void * timeGetSharedmemAddr(void)
[6.0.0+] Gets the address of the SharedMemory.
TimeServiceType
Values for __nx_time_service_type.
Definition time.h:13
@ TimeServiceType_Repair
Initializes time:r. Only available with [9.0.0+].
Definition time.h:17
@ TimeServiceType_SystemUser
Initializes time:su. Only available with [9.0.0+].
Definition time.h:18
@ TimeServiceType_System
Initializes time:s.
Definition time.h:16
@ TimeServiceType_User
Default. Initializes time:u.
Definition time.h:14
@ TimeServiceType_Menu
Initializes time:a.
Definition time.h:15
Service * timeGetServiceSession_SteadyClock(void)
Gets the Service object for ISteadyClock.
Result timeGetCurrentTime(TimeType type, u64 *timestamp)
Gets the time for the specified clock.
Result timeInitialize(void)
Initialize time. Used automatically during app startup.
Service * timeGetServiceSession_TimeZoneService(void)
Gets the Service object for ITimeZoneService.
Service * timeGetServiceSession(void)
Gets the Service object for the actual time service session.
Result timeSetCurrentTime(TimeType type, u64 timestamp)
Sets the time for the specified clock.
int64_t s64
64-bit signed integer.
Definition types.h:28
uint64_t u64
64-bit unsigned integer.
Definition types.h:22
uint8_t u8
8-bit unsigned integer.
Definition types.h:19
uint16_t u16
16-bit unsigned integer.
Definition types.h:20
u32 Result
Function error code result type.
Definition types.h:44
int32_t s32
32-bit signed integer.
Definition types.h:27
uint32_t u32
32-bit unsigned integer.
Definition types.h:21