ExchangeFileContents
|
Help functions for the processing of time. More...
Functions | |
__tool_export_dll std::string | getMonth (unsigned int uiMonth) |
__tool_export_dll std::string | getMilitaryTime (const std::time_t &rTime) |
__tool_export_dll std::string | getMilitarySystemTime () |
__tool_export_dll std::string | getTimeString (const std::time_t &rTime, const std::string &rsFormat="%Y.%m.%d - %X") |
__tool_export_dll std::string | getSystemTimeString (const std::string &rsFormat="%Y.%m.%d - %X") |
__tool_export_dll std::time_t | getTime (unsigned int uiYear, unsigned int uiMonth, unsigned int uiDay, unsigned int uiHour, unsigned int uiMin, unsigned int uiSec) |
Help functions for the processing of time.
__tool_export_dll std::string eut::TimeFunctions::getMilitarySystemTime | ( | ) |
Returns the systemtime in military notation. day time zone year | | | |03|1732|Z|jul|21| | | time month
__tool_export_dll std::string eut::TimeFunctions::getMilitaryTime | ( | const std::time_t & | rTime | ) |
Returns passed date with time in military notation. day time zone year | | | |03|1732|Z|jul|21| | | time month
[in] | rTime | Date/time. |
__tool_export_dll std::string eut::TimeFunctions::getMonth | ( | unsigned int | uiMonth | ) |
Returns the 3 letter code of the passed month ordinal number.
[in] | uiMonth | The month ordinal number is between 1 and 12. |
eut::ErrorNException | An exception will be thrown if the passed month ordinal number is outside the range of 1 to 12. |
__tool_export_dll std::string eut::TimeFunctions::getSystemTimeString | ( | const std::string & | rsFormat = "%Y.%m.%d - %X" | ) |
Returns the systemtime formatted as defined in rsFormat (see description of std::strftime(...) ).
[in] | rsFormat | The date-time format (default is "%Y.%m.%d - %X". |
__tool_export_dll std::time_t eut::TimeFunctions::getTime | ( | unsigned int | uiYear, |
unsigned int | uiMonth, | ||
unsigned int | uiDay, | ||
unsigned int | uiHour, | ||
unsigned int | uiMin, | ||
unsigned int | uiSec ) |
Returns a time_t created from passed parameters.
[in] | uiYear | The year. |
[in] | uiMonth | The month. |
[in] | uiDay | The day. |
[in] | uiHour | The hour. |
[in] | uiMin | The minute. |
[in] | uiSec | The second. |
__tool_export_dll std::string eut::TimeFunctions::getTimeString | ( | const std::time_t & | rTime, |
const std::string & | rsFormat = "%Y.%m.%d - %X" ) |
Returns the passed date with time formatted as defined in rsFormat (see description of std::strftime(...) ).
[in] | rTime | Date/time. |
[in] | rsFormat | The date-time format (default is "%Y.%m.%d - %X". |