DateToDays

nn::fnd::DateTime::DateToDays Member Function

Syntax

#include <nn/fnd.h>

static s32 DateToDays(
     s32 year,
     s32 month,
     s32 day
);

Parameters

Name Description
in year Specifies the year.
in month Specifies the month.
in day Specifies the date.

Return Values

Returns the number of elapsed days.

Description

Calculates the number of days elapsed from 2000/01/01 until the given date.

Be sure to specify a valid date. The results are indeterminate if an invalid date is specified. You can use IsValidDate to check whether the specified date is valid.

Revision History

2010/02/18
Initial version.

CONFIDENTIAL