ExchangeFileContents
Loading...
Searching...
No Matches
eut::TimeFunctions Namespace Reference

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)
 

Detailed Description

Help functions for the processing of time.

Author
Helmut Jakoby

Function Documentation

◆ getMilitarySystemTime()

__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

Note
The time zone is always 'Z'.
Returns
See above.

◆ getMilitaryTime()

__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

Parameters
[in]rTimeDate/time.
Note
The time zone is always 'Z'.
Returns
See above.

◆ getMonth()

__tool_export_dll std::string eut::TimeFunctions::getMonth ( unsigned int uiMonth)

Returns the 3 letter code of the passed month ordinal number.

Parameters
[in]uiMonthThe month ordinal number is between 1 and 12.
Returns
Der 3 letter code of the month..
Exceptions
eut::ErrorNExceptionAn exception will be thrown if the passed month ordinal number is outside the range of 1 to 12.

◆ getSystemTimeString()

__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(...) ).

Parameters
[in]rsFormatThe date-time format (default is "%Y.%m.%d - %X".
Returns
See above.

◆ getTime()

__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.

Parameters
[in]uiYearThe year.
[in]uiMonthThe month.
[in]uiDayThe day.
[in]uiHourThe hour.
[in]uiMinThe minute.
[in]uiSecThe second.
Returns
See above.

◆ getTimeString()

__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(...) ).

Parameters
[in]rTimeDate/time.
[in]rsFormatThe date-time format (default is "%Y.%m.%d - %X".
Returns
See above.