Goby3  3.1.5a
2024.05.23
goby::common Namespace Reference

Deprecated functions largely related to time handling (use goby::time for new work) More...

Functions

double ptime2unix_double (boost::posix_time::ptime given_time)
 
boost::posix_time::ptime unix_double2ptime (double given_time)
 
std::uint64_t ptime2unix_microsec (boost::posix_time::ptime given_time)
 
boost::posix_time::ptime unix_microsec2ptime (std::uint64_t given_time)
 
template<typename ReturnType >
ReturnType goby_time ()
 
template<>
std::uint64_t goby_time< std::uint64_t > ()
 
template<>
double goby_time< double > ()
 
template<>
boost::posix_time::ptime goby_time< boost::posix_time::ptime > ()
 
template<>
std::string goby_time< std::string > ()
 Returns current UTC time as a human-readable string. More...
 
std::string goby_time_as_string (const boost::posix_time::ptime &t=goby_time())
 Simple string representation of goby_time() More...
 
std::string goby_file_timestamp ()
 ISO string representation of goby_time() More...
 
boost::posix_time::ptime time_t2ptime (std::time_t t)
 convert to ptime from time_t from time.h (whole seconds since UNIX) More...
 
std::time_t ptime2time_t (boost::posix_time::ptime t)
 convert from ptime to time_t from time.h (whole seconds since UNIX) More...
 
boost::posix_time::ptime nmea_time2ptime (const std::string &mt)
 

Detailed Description

Deprecated functions largely related to time handling (use goby::time for new work)

Function Documentation

◆ goby_file_timestamp()

std::string goby::common::goby_file_timestamp ( )
inline

ISO string representation of goby_time()

Definition at line 159 of file legacy.h.

◆ goby_time()

template<typename ReturnType >
boost::posix_time::ptime goby::common::goby_time ( )
inline

Definition at line 112 of file legacy.h.

◆ goby_time< boost::posix_time::ptime >()

template<>
boost:: posix_time::ptime goby::common::goby_time< boost::posix_time::ptime > ( )
inline

Definition at line 133 of file legacy.h.

◆ goby_time< double >()

template<>
double goby::common::goby_time< double > ( )
inline

Definition at line 125 of file legacy.h.

◆ goby_time< std::string >()

template<>
std::string goby::common::goby_time< std::string > ( )
inline

Returns current UTC time as a human-readable string.

Definition at line 146 of file legacy.h.

◆ goby_time< std::uint64_t >()

template<>
std:: uint64_t goby::common::goby_time< std::uint64_t > ( )
inline

Definition at line 118 of file legacy.h.

◆ goby_time_as_string()

std::string goby::common::goby_time_as_string ( const boost::posix_time::ptime &  t = goby_time())
inline

Simple string representation of goby_time()

Definition at line 153 of file legacy.h.

◆ nmea_time2ptime()

boost::posix_time::ptime goby::common::nmea_time2ptime ( const std::string &  mt)
inline

Definition at line 179 of file legacy.h.

◆ ptime2time_t()

std::time_t goby::common::ptime2time_t ( boost::posix_time::ptime  t)
inline

convert from ptime to time_t from time.h (whole seconds since UNIX)

Definition at line 172 of file legacy.h.

◆ ptime2unix_double()

double goby::common::ptime2unix_double ( boost::posix_time::ptime  given_time)
inline

Definition at line 44 of file legacy.h.

◆ ptime2unix_microsec()

std::uint64_t goby::common::ptime2unix_microsec ( boost::posix_time::ptime  given_time)
inline

Definition at line 56 of file legacy.h.

◆ time_t2ptime()

boost::posix_time::ptime goby::common::time_t2ptime ( std::time_t  t)
inline

convert to ptime from time_t from time.h (whole seconds since UNIX)

Definition at line 166 of file legacy.h.

◆ unix_double2ptime()

boost::posix_time::ptime goby::common::unix_double2ptime ( double  given_time)
inline

Definition at line 50 of file legacy.h.

◆ unix_microsec2ptime()

boost::posix_time::ptime goby::common::unix_microsec2ptime ( std::uint64_t  given_time)
inline

Definition at line 62 of file legacy.h.