VieSched++
VieVS VLBI Scheduling Software
VieVS::TimeSystem Class Reference

This class holds importang time information. More...

#include <TimeSystem.h>

Static Public Member Functions

static double mjd2gmst (double mjd)
 transforms modified julian date to Greenwich mean sidereal time More...
 
static std::string time2string (const boost::posix_time::ptime &ptime)
 converts datetime to string More...
 
static std::string time2string (unsigned int time)
 converts internal time to string More...
 
static std::string time2string_units (const boost::posix_time::ptime &ptime)
 converts datetime to string More...
 
static std::string time2string_units (unsigned int time)
 converts internal time to string More...
 
static std::string time2string_doy (const boost::posix_time::ptime &ptime)
 converts datetime to string More...
 
static std::string time2string_doy (unsigned int time)
 converts internal time to string More...
 
static std::string time2string_doy_minus (const boost::posix_time::ptime &ptime)
 convert datetime to string More...
 
static std::string time2string_doy_minus (unsigned int time)
 convert internal time to string More...
 
static std::string time2string_doySkdDowntime (const boost::posix_time::ptime &ptime)
 converts datetime to string More...
 
static std::string time2string_doySkdDowntime (unsigned int time)
 converts internal time to string More...
 
static std::string time2string_ast (const boost::posix_time::ptime &ptime)
 converts datetime to string More...
 
static std::string time2string_ast (unsigned int time)
 converts internal time to string More...
 
static std::string time2string_doy_units (const boost::posix_time::ptime &ptime)
 converts datetime to string More...
 
static std::string time2string_doy_units (unsigned int time)
 converts internal time to string More...
 
static std::string time2date (const boost::posix_time::ptime &ptime)
 converts datetime to string More...
 
static std::string time2date (unsigned int time)
 converts internal time to string More...
 
static std::string time2timeOfDay (const boost::posix_time::ptime &ptime)
 converts datetime to string More...
 
static std::string time2timeOfDay (unsigned int time)
 converts internal time to string More...
 
static boost::posix_time::ptime internalTime2PosixTime (unsigned int time)
 internal time format to datetime More...
 
static unsigned int posixTime2InternalTime (const boost::posix_time::ptime &ptime)
 converts time to internal time format More...
 
static boost::posix_time::ptime string_doy2ptime (std::string input)
 convert string to datetime More...
 
static boost::posix_time::ptime string2ptime (std::string input)
 convert string to datetime More...
 

Static Public Attributes

static double mjdStart = 0
 modified julian date of session start More...
 
static boost::posix_time::ptime startTime = boost::posix_time::ptime()
 session start time More...
 
static boost::posix_time::ptime endTime = boost::posix_time::ptime()
 session end time More...
 
static unsigned int duration = 0
 session duration in seconds More...
 

Detailed Description

This class holds importang time information.

Author
Matthias Schartner
Date
22.08.2017

Member Function Documentation

boost::posix_time::ptime VieVS::TimeSystem::internalTime2PosixTime ( unsigned int  time)
static

internal time format to datetime

Author
Matthias Schartner
Parameters
timetarget internal time
Returns
datetime

Here is the caller graph for this function:

double VieVS::TimeSystem::mjd2gmst ( double  mjd)
static

transforms modified julian date to Greenwich mean sidereal time

Author
Matthias Schartner
Parameters
mjdmodified julian date
Returns
Greenwich mean sidereal time

Here is the caller graph for this function:

unsigned int VieVS::TimeSystem::posixTime2InternalTime ( const boost::posix_time::ptime &  ptime)
static

converts time to internal time format

Author
Matthias Schartner
Parameters
ptimetarget datetime
Returns
internal time

Here is the call graph for this function:

Here is the caller graph for this function:

boost::posix_time::ptime VieVS::TimeSystem::string2ptime ( std::string  input)
static

convert string to datetime

Author
Matthias Schartner

input format: yyyyMMddhhmmss yyyy: year MM: month dd: day hh: hour mm: minute ss: second

Parameters
inputinput string
Returns
datetime

Here is the caller graph for this function:

boost::posix_time::ptime VieVS::TimeSystem::string_doy2ptime ( std::string  input)
static

convert string to datetime

Author
Matthias Schartner

input format: yydoyhhmmss or yyyydoyhhmmss yy, yyyy: year doy: day of year hh: hour mm: minute ss: second

Parameters
inputinput string
Returns
datetime

Here is the caller graph for this function:

std::string VieVS::TimeSystem::time2date ( const boost::posix_time::ptime &  ptime)
static

converts datetime to string

Author
Matthias Schartner

three character month string is used example output: 18JAN01

Parameters
ptimetarget datetime
Returns
date string

Here is the caller graph for this function:

static std::string VieVS::TimeSystem::time2date ( unsigned int  time)
inlinestatic

converts internal time to string

Author
Matthias Schartner

three character month string is used example output: 18JAN01

Parameters
timetarget time in seconds from session start
Returns
date string

Here is the call graph for this function:

Here is the caller graph for this function:

std::string VieVS::TimeSystem::time2string ( const boost::posix_time::ptime &  ptime)
static

converts datetime to string

Author
Matthias Schartner

example output: 2018.01.01 00:00:00

Parameters
ptimetarget datetime
Returns
datetime string

Here is the caller graph for this function:

static std::string VieVS::TimeSystem::time2string ( unsigned int  time)
inlinestatic

converts internal time to string

Author
Matthias Schartner

example output: 2018.01.01 00:00:00

Parameters
timetarget time in seconds from session start
Returns
datetime string

Here is the call graph for this function:

Here is the caller graph for this function:

std::string VieVS::TimeSystem::time2string_ast ( const boost::posix_time::ptime &  ptime)
static

converts datetime to string

Author
Matthias Schartner

instead of month and day the day of year is used example output: 2018.01.01-00:00:00.0

Parameters
ptimetarget datetime
Returns
datetime string

Here is the caller graph for this function:

static std::string VieVS::TimeSystem::time2string_ast ( unsigned int  time)
inlinestatic

converts internal time to string

Author
Matthias Schartner

instead of month and day the day of year is used example output: 2018-001-00:00:00

Parameters
timetarget time in seconds from session start
Returns
datetime string

Here is the call graph for this function:

std::string VieVS::TimeSystem::time2string_doy ( const boost::posix_time::ptime &  ptime)
static

converts datetime to string

Author
Matthias Schartner

instead of month and day the day of year is used example output: 18001000000

Parameters
ptimetarget datetime
Returns
datetime string

Here is the caller graph for this function:

static std::string VieVS::TimeSystem::time2string_doy ( unsigned int  time)
inlinestatic

converts internal time to string

Author
Matthias Schartner

instead of month and day the day of year is used example output: 18001000000

Parameters
timetarget time in seconds from session start
Returns
datetime string

Here is the call graph for this function:

std::string VieVS::TimeSystem::time2string_doy_minus ( const boost::posix_time::ptime &  ptime)
static

convert datetime to string

Author
Matthias Schartner

example output: 18001-000000

Parameters
ptimetarget datetime
Returns
datetime

Here is the caller graph for this function:

static std::string VieVS::TimeSystem::time2string_doy_minus ( unsigned int  time)
inlinestatic

convert internal time to string

Author
Matthias Schartner

example output: 18001-000000

Parameters
timetarget time in seconds from session start
Returns
datetime

Here is the call graph for this function:

std::string VieVS::TimeSystem::time2string_doy_units ( const boost::posix_time::ptime &  ptime)
static

converts datetime to string

Author
Matthias Schartner

instead of month and day the day of year is used example output: 2018y001d00h00m00s

Parameters
ptimetarget datetime
Returns
datetime string

Here is the caller graph for this function:

static std::string VieVS::TimeSystem::time2string_doy_units ( unsigned int  time)
inlinestatic

converts internal time to string

Author
Matthias Schartner

instead of month and day the day of year is used example output: 2018y001d00h00m00s

Parameters
timetarget time in seconds from session start
Returns
datetime string

Here is the call graph for this function:

std::string VieVS::TimeSystem::time2string_doySkdDowntime ( const boost::posix_time::ptime &  ptime)
static

converts datetime to string

Author
Matthias Schartner

instead of month and day the day of year is used example output: 2018-001-00:00:00

Parameters
ptimetarget datetime
Returns
datetime string

Here is the caller graph for this function:

static std::string VieVS::TimeSystem::time2string_doySkdDowntime ( unsigned int  time)
inlinestatic

converts internal time to string

Author
Matthias Schartner

instead of month and day the day of year is used example output: 2018-001-00:00:00

Parameters
timetarget time in seconds from session start
Returns
datetime string

Here is the call graph for this function:

std::string VieVS::TimeSystem::time2string_units ( const boost::posix_time::ptime &  ptime)
static

converts datetime to string

Author
Matthias Schartner

example output: 2018y01m01d00h00m00s

Parameters
ptimetarget datetime
Returns
datetime string

Here is the caller graph for this function:

static std::string VieVS::TimeSystem::time2string_units ( unsigned int  time)
inlinestatic

converts internal time to string

Author
Matthias Schartner

example output: 2018y01m01d00h00m00s

Parameters
timetarget time in seconds from session start
Returns
datetime string

Here is the call graph for this function:

std::string VieVS::TimeSystem::time2timeOfDay ( const boost::posix_time::ptime &  ptime)
static

converts datetime to string

Author
Matthias Schartner

example output: 00:00:00

Parameters
ptimetarget datetime
Returns
time string

Here is the caller graph for this function:

static std::string VieVS::TimeSystem::time2timeOfDay ( unsigned int  time)
inlinestatic

converts internal time to string

Author
Matthias Schartner

example output: 00:00:00

Parameters
timetarget time in seconds from session start
Returns
time string

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

unsigned int VieVS::TimeSystem::duration = 0
static

session duration in seconds

boost::posix_time::ptime VieVS::TimeSystem::endTime = boost::posix_time::ptime()
static

session end time

double VieVS::TimeSystem::mjdStart = 0
static

modified julian date of session start

boost::posix_time::ptime VieVS::TimeSystem::startTime = boost::posix_time::ptime()
static

session start time


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