#include <FUDateTime.h>
Public Member Functions | |
FUDateTime () | |
Default constructor. | |
FUDateTime (const FUDateTime &time) | |
Copy constructor. | |
~FUDateTime () | |
Destructor. | |
uint32 | GetSeconds () const |
Retrieves the seconds component of the date-time structure. | |
uint32 | GetMinutes () const |
Retrieves the minutes component of the date-time structure. | |
uint32 | GetHour () const |
Retrieves the hour component of the date-time structure. | |
uint32 | GetDay () const |
Retrieves the day component of the date-time structure. | |
uint32 | GetMonth () const |
Retrieves the month component of the date-time structure. | |
uint32 | GetYear () const |
Retrieves the year component of the date-time structure. | |
void | SetSeconds (uint32 _seconds) |
Sets the seconds component of the date-time structure. | |
void | SetMinutes (uint32 _minutes) |
Sets the minutes component of the date-time structure. | |
void | SetHour (uint32 _hour) |
Sets the hour component of the date-time structure. | |
void | SetDay (uint32 _day) |
Sets the day component of the date-time structure. | |
void | SetMonth (uint32 _month) |
Sets the month component of the date-time structure. | |
void | SetYear (uint32 _year) |
Sets the year component of the date-time structure. | |
Static Public Member Functions | |
static FUDateTime | GetNow () |
Creates a date-time structure to represent the current time. |
Encapsulates the OS-dependant timing functions. Use the static member function: GetNow() to sample the current time. The day and month values are 1-indexed, to be user-friendly.
|
Default constructor. The default date-time is set to 01/01/1900 at 00:00:00. |
|
Copy constructor. Creates an identical clone of the given date-time structure.
|
|
Retrieves the day component of the date-time structure.
|
|
Retrieves the hour component of the date-time structure.
|
|
Retrieves the minutes component of the date-time structure.
|
|
Retrieves the month component of the date-time structure.
|
|
Creates a date-time structure to represent the current time. Encapsulates the OS-dependant time() function.
|
|
Retrieves the seconds component of the date-time structure.
|
|
Retrieves the year component of the date-time structure.
|
|
Sets the day component of the date-time structure.
|
|
Sets the hour component of the date-time structure.
|
|
Sets the minutes component of the date-time structure.
|
|
Sets the month component of the date-time structure.
|
|
Sets the seconds component of the date-time structure.
|
|
Sets the year component of the date-time structure.
|