nn::cfg::CTR::GetUserTimeOffset Function

Syntax

#include <nn/cfg.h>

nn::fnd::TimeSpan GetUserTimeOffset();

Parameters

None.

Return Values

Gets the RTC offset value saved by the system.

Description

Gets RTC modification offset information.

When a user changes the date or time, the offset between the current RTC time and its previous setting is saved as the RTC offset value.

Applications can be made aware of user changes to the RTC by checking this offset value on application launch.

If the system update (System Version 5.X.X) released at the end of March 2013 has not been applied to a system and the user executes System Transfer, software and data are transferred with this value unintentionally modified. This problem does not occur if System Transfer is executed on a system for which the described system update has been applied.

Revision History

2013/03/19
Added a description of how the variable RTC modification offset value can become unintentionally modified.
2011/10/27
Initial version.

CONFIDENTIAL