The date and time class provides date and time members. More...

#include "murl_system_time.h"

Public Member Functions

 DateTime ()
 The default constructor. More...
 
 DateTime (const Time &time)
 Constructor taking a time object. More...
 
String ToString () const
 Get the string representation of the object. More...
 

Static Public Member Functions

static DateTime GetNow ()
 Get the date and time from now. More...
 

Public Attributes

UInt32 mHour
 The hours since midnight in range [0 . . 23]. More...
 
UInt32 mMinute
 The minutes after the hour in range [0 . . 59]. More...
 
UInt32 mSecond
 The seconds after the minute in range [0 . . 59]. More...
 
SInt32 mYear
 The year anno domini. More...
 
UInt32 mMonth
 The month in range [1 . . 12]. More...
 
UInt32 mDay
 The day in range [1 . . 31]. More...
 
UInt32 mDayOfWeek
 The day of week in range [0 . . 6] == [Monday . . Sunday]. More...
 
UInt32 mDayOfYear
 The day of year in range [0 . . 365]. More...
 

Detailed Description

The date and time class provides date and time members.

Constructor & Destructor Documentation

◆ DateTime() [1/2]

Murl::System::DateTime::DateTime ( )

The default constructor.

All members are initialized to zero.

◆ DateTime() [2/2]

Murl::System::DateTime::DateTime ( const Time time)

Constructor taking a time object.

Parameters
timeThe number of seconds since 00:00 hours, Jan 1, 1970 UTC.

Member Function Documentation

◆ GetNow()

static DateTime Murl::System::DateTime::GetNow ( )
static

Get the date and time from now.

Returns
The DateTime object containing the date and time from now.

◆ ToString()

String Murl::System::DateTime::ToString ( ) const

Get the string representation of the object.

Returns
The string representation of the object.

Member Data Documentation

◆ mHour

UInt32 Murl::System::DateTime::mHour

The hours since midnight in range [0 . . 23].

◆ mMinute

UInt32 Murl::System::DateTime::mMinute

The minutes after the hour in range [0 . . 59].

◆ mSecond

UInt32 Murl::System::DateTime::mSecond

The seconds after the minute in range [0 . . 59].

◆ mYear

SInt32 Murl::System::DateTime::mYear

The year anno domini.

◆ mMonth

UInt32 Murl::System::DateTime::mMonth

The month in range [1 . . 12].

◆ mDay

UInt32 Murl::System::DateTime::mDay

The day in range [1 . . 31].

◆ mDayOfWeek

UInt32 Murl::System::DateTime::mDayOfWeek

The day of week in range [0 . . 6] == [Monday . . Sunday].

◆ mDayOfYear

UInt32 Murl::System::DateTime::mDayOfYear

The day of year in range [0 . . 365].


The documentation for this class was generated from the following file:
  • murl_system_time.h


Copyright © 2011-2018 Spraylight GmbH.