![]() |
![]() |
![]() |
| HOME | DOWNLOAD | DOCS | DEVELOPMENT | LICENSE | CREDITS |
Date/time information. More...
#include <iDateTime.h>
Public Member Functions | |
| iDateTime () | |
| Contructor. | |
| iDateTime (const iDateTime &dt) | |
| Copy contructor. | |
| void | update () |
| Sets all data members to the current date/time. | |
| void | set (Iuint y, Iuint m, Iuint d, Iuint h, Iuint mn, Iuint s, Iuint ms) |
| Sets all data members to the given date/time. | |
| Iuint | year () const |
| Returns the year. | |
| Iuint | month () const |
| Returns the month. | |
| Iuint | day () const |
| Returns the day. | |
| Iuint | hour () const |
| Returns the hour. | |
| Iuint | minute () const |
| Returns the minute. | |
| Iuint | second () const |
| Returns the second. | |
| Iuint | millisec () const |
| Returns the millisecond. | |
| void | setYear (Iuint y) |
| Sets the year. | |
| void | setMonth (Iuint m) |
| Sets the month. | |
| void | setDay (Iuint d) |
| Sets the day. | |
| void | setHour (Iuint h) |
| Sets the hour. | |
| void | setMinute (Iuint m) |
| Sets the minute. | |
| void | setSecond (Iuint s) |
| Sets the second. | |
| void | setMillisec (Iuint ms) |
| Sets the millisecond. | |
| iDateTime & | operator= (const iDateTime &dt) |
Date/time information.
This class is used for storing date and time information.
You can manually set the date/time using the given accessor functions, or call update() to set all members to the current date/time.
The constructor calls update(), so the date/time will be accurate at the time a given iDateTime object is constructed.
| imagen::iDateTime::iDateTime | ( | const iDateTime & | dt | ) | [inline] |
Copy contructor.
| void imagen::iDateTime::update | ( | ) |
Sets all data members to the current date/time.
| void imagen::iDateTime::set | ( | Iuint | y, |
| Iuint | m, | ||
| Iuint | d, | ||
| Iuint | h, | ||
| Iuint | mn, | ||
| Iuint | s, | ||
| Iuint | ms | ||
| ) | [inline] |
Sets all data members to the given date/time.
| y | : Year |
| m | : Month |
| d | : Day |
| h | : Hour |
| mn | : Minute |
| s | : Second |
| ms | : Millisecond |
| Iuint imagen::iDateTime::year | ( | ) | const [inline] |
Returns the year.
| Iuint imagen::iDateTime::month | ( | ) | const [inline] |
Returns the month.
| Iuint imagen::iDateTime::day | ( | ) | const [inline] |
Returns the day.
| Iuint imagen::iDateTime::hour | ( | ) | const [inline] |
Returns the hour.
| Iuint imagen::iDateTime::minute | ( | ) | const [inline] |
Returns the minute.
| Iuint imagen::iDateTime::second | ( | ) | const [inline] |
Returns the second.
| Iuint imagen::iDateTime::millisec | ( | ) | const [inline] |
Returns the millisecond.
| void imagen::iDateTime::setYear | ( | Iuint | y | ) | [inline] |
Sets the year.
| void imagen::iDateTime::setMonth | ( | Iuint | m | ) | [inline] |
Sets the month.
| void imagen::iDateTime::setDay | ( | Iuint | d | ) | [inline] |
Sets the day.
| void imagen::iDateTime::setHour | ( | Iuint | h | ) | [inline] |
Sets the hour.
| void imagen::iDateTime::setMinute | ( | Iuint | m | ) | [inline] |
Sets the minute.
| void imagen::iDateTime::setSecond | ( | Iuint | s | ) | [inline] |
Sets the second.
| void imagen::iDateTime::setMillisec | ( | Iuint | ms | ) | [inline] |
Sets the millisecond.
API Documentation by Mark D. Procarione |
Generated by
![]() |