A calendar date class. More...

#include <zupply.hpp>

Public Member Functions

void to_local_time ()
 Convert to local time zone.
 
void to_utc_time ()
 Convert to UTC time zone.
 
std::string to_string (const char *format="%y-%m-%d %H:%M:%S.%frac")
 Convert date to user friendly string. Support various formats. More...
 

Static Public Member Functions

static DateTime local_time ()
 Static function to return in local_time. More...
 
static DateTime utc_time ()
 Static function to return in utc_time. More...
 

Detailed Description

A calendar date class.

Member Function Documentation

DateTime zz::time::DateTime::local_time ( )
static

Static function to return in local_time.

Returns
DateTime instance
std::string zz::time::DateTime::to_string ( const char *  format = "%y-%m-%d %H:%M:%S.%frac")

Convert date to user friendly string. Support various formats.

Parameters
format
Returns
Readable string
DateTime zz::time::DateTime::utc_time ( )
static

Static function to return in utc_time.

Returns
DateTime instance

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