SPH
Public Member Functions | List of all members
DateFormat Class Reference

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

Detailed Description

Helper class for transforming Julian date to calendar date.

Definition at line 22 of file TimeFormat.h.

Constructor & Destructor Documentation

◆ DateFormat()

NAMESPACE_SPH_BEGIN DateFormat::DateFormat ( const Float  value,
const JulianDateFormat  inputFormat,
const std::string &  outputFormat 
)

Construct object using Julian date

Parameters
valueNumeric value of Julian date.
inputFormatFormat of input value, see JulianDateFormat enum
outputFormatFormat 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.

Member Function Documentation

◆ get()

std::string DateFormat::get ( ) const

Returns the formatted string containing date/time.

Definition at line 23 of file TimeFormat.cpp.


The documentation for this class was generated from the following files: