nn::nex::DateTime Class

Syntax

class DateTime : public nn::nex::RootObject

Description

Stores date and time specifications.

The enabled format for dates and times is YYYY-MM-DD HH:MM:SS.

Member Constants

S Never Constant representing never.
S Future A time that is always in the future.

Member Functions

DateTime Constructor.
operator= An assignment operator.
operator== A comparison operator.
operator!= A comparison operator.
operator< A comparison operator.
operator> A comparison operator.
operator<= A comparison operator.
operator>= A comparison operator.
GetYear Returns the year specified by the DateTime object.
GetMonth Returns the month specified by the DateTime object.
GetDay Returns the date specified by the DateTime object.
GetHour Returns the hour specified by the DateTime object.
GetMinute Returns the minute specified by the DateTime object.
GetSecond Returns the second specified by the DateTime object.
Trace Traces object content.
IsValid Returns whether the set time is valid.
IsNever Indicates whether the specified time is equivalent to DateTime::Never.
ToCTRDateTime Returns a nn::fnd::DateTime type date-and-time object, converted from the set time.
ToEpochTime Gets the number of seconds elapsed since 2000/1/1 00:00:00 AM (a custom Epoch time).
ToUnixEpochTime Gets the number of seconds elapsed since 1970/01/01 00:00:00 AM (Unix Epoch time).
S GetSystemTime Gets the system time (RTC time).
S FromEpochTime Generates a DateTime object that stores the number of seconds elapsed since 2000/1/1 00:00:00 AM (a custom Epoch time).
S FromUnixEpochTime Generates a DateTime object that stores the number of seconds elapsed since 1970/01/01 00:00:00 AM (Unix Epoch time).

Class Hierarchy

nn::nex::RootObject
  nn::nex::DateTime

Revision History

2011/01/27
Initial version.

CONFIDENTIAL