nn::fnd::DateTime::GetNow Member Function

Syntax

#include <nn/fnd.h>

static DateTime GetNow();

Parameters

None.

Return Values

Returns the current date and time.

Description

Gets the current date and time.

This interface returns a value that is valid to the millisecond.

There are individual differences in the current date and time that get returned by the interface, and it greatly depends on temperature, so the precision is somewhere around ±60 seconds per month. This value is not something that can be guaranteed in the retail product.

System ticks, as gotten by nn::os::Tick, progress at a different speed, so the two values must not be used in combination. Because the current date and time that gets returned by the interface is a value that has been interpolated, the speed not only is different, but it also fluctuates. The speed varies by around ±1 second per hour. For this reason, even though you get values in the same units with the nn::os::Tick::ToTimeSpan function, you do not get the same value even when you take the measurement at the same time.

In most cases, time also progresses at different rates in libraries that handle time internally (for example, for streaming playback of audio and video). So, for example, if you want to synchronize the application's gameplay with the sound playback, you need to understand the specifications for the individual libraries and use the same rate of time progression for both.

Revision History

2012/01/17
Noted that mixed use with nn::os::Tick is prohibited, and added a description of precision.
2010/01/29
Initial version.

CONFIDENTIAL