SPH
|
Helper class for transforming Julian date to calendar date. More...
#include <TimeFormat.h>
Public Member Functions | |
DateFormat (const Float value, const JulianDateFormat inputFormat, const std::string &outputFormat) | |
std::string | get () const |
Returns the formatted string containing date/time. More... | |
Helper class for transforming Julian date to calendar date.
Definition at line 22 of file TimeFormat.h.
NAMESPACE_SPH_BEGIN DateFormat::DateFormat | ( | const Float | value, |
const JulianDateFormat | inputFormat, | ||
const std::string & | outputFormat | ||
) |
Construct object using Julian date
value | Numeric value of Julian date. |
inputFormat | Format of input value, see JulianDateFormat enum |
outputFormat | Format of output string. Replaces symbols with respective time value: Y - year m - month d - day H - hour M - minute s - second Example: "%H:%M - %d. %m. %Y" returns something like "15:43 - 12. 11. 2016" |
Definition at line 7 of file TimeFormat.cpp.
std::string DateFormat::get | ( | ) | const |
Returns the formatted string containing date/time.
Definition at line 23 of file TimeFormat.cpp.