libpniio
Static Public Member Functions | Static Private Member Functions
pni::io::nx::nxdate_time Class Reference

date time factory More...

#include <nxdate_time.hpp>

Static Public Member Functions

static pni::core::string get_date_time_str ()
 date-time now More...
 
static pni::core::string get_date_time_str (const time_t &t)
 date-time at t More...
 

Static Private Member Functions

static pni::core::string __get_date_time_str (const boost::posix_time::ptime &t)
 get date time from ptime More...
 
static pni::core::string __get_utc_delta ()
 get delta to UTC as a string More...
 

Detailed Description

nxdate_time provides static methods to create date-time strings which are compliant to the Nexus standard. It is highly important for this class to work properly that the time zone setup is correct. Time-zone information can come either directly from the host machine the program is running on or can be configured manually if this setup is not correct.

Member Function Documentation

pni::core::string pni::io::nx::nxdate_time::__get_date_time_str ( const boost::posix_time::ptime &  t)
staticprivate
pni::core::string pni::io::nx::nxdate_time::__get_utc_delta ( )
staticprivate
pni::core::string pni::io::nx::nxdate_time::get_date_time_str ( )
static

Returns a string with a Nexus compliant date-time string for now.

Returns
Nexus date-time string
pni::core::string pni::io::nx::nxdate_time::get_date_time_str ( const time_t &  t)
static

Converts a given time in time_t format to a Nexus date-time string.

Parameters
ttime as time_t
Returns
Nexus date-time string

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