nn::fnd::DateTime::FromParameters Member Function

Syntax

#include <nn/fnd.h>

static DateTime FromParameters(
     s32 year,
     s32 month,
     s32 day,
     s32 hour = 0,
     s32 minute = 0,
     s32 second = 0,
     s32 millisecond = 0
);

Arguments

Name Description
in year Specifies the year.[ 1900 ... 2189]
in month Specifies the month.[ 1 ... 12 ]
in day Specifies the date.[ 1 ... 31 ]
in hour Specifies the hour.[ 0 ... 23 ]
in minute Specifies the minutes.[ 0 ... 59 ]
in second Specifies the seconds.[ 0 ... 59 ]
in millisecond Specifies the milliseconds.[ 0 ... 999 ]

Return Values

Returns a DateTime object set to the specified date and time.

Description

Generates a DateTime object from a year, month, day, hour, minute, and second value.

Specify a valid calendar date/time. The results are indeterminate if an invalid date is specified. You can use IsValidParameters to check whether the specified date/time is valid.

Revision History

2010/02/18
Initial version.

CONFIDENTIAL