| 
    Goby3 3.3.0
    
   2025.07.10 
   | 
 
#include <ctime>#include <sys/time.h>#include "goby/time/convert.h"#include "goby/time/system_clock.h"#include "goby/util/as.h"#include "goby/util/primitive_types.h"Go to the source code of this file.
Namespaces | |
| namespace | goby | 
| The global namespace for the Goby project.  | |
| namespace | goby::common | 
| Deprecated functions largely related to time handling (use goby::time for new work)  | |
| namespace | goby::util | 
Functions | |
| double | goby::common::ptime2unix_double (boost::posix_time::ptime given_time) | 
| boost::posix_time::ptime | goby::common::unix_double2ptime (double given_time) | 
| std::uint64_t | goby::common::ptime2unix_microsec (boost::posix_time::ptime given_time) | 
| boost::posix_time::ptime | goby::common::unix_microsec2ptime (std::uint64_t given_time) | 
| template<typename To , typename From > | |
| boost::enable_if< boost::mpl::and_< boost::is_same< To, double >, boost::is_same< From, boost::posix_time::ptime > >, To >::type | goby::util::as (const From &from) | 
| template<typename To , typename From > | |
| boost::enable_if< boost::mpl::and_< boost::is_same< To, boost::posix_time::ptime >, boost::is_same< From, double > >, To >::type | goby::util::as (const From &from) | 
| template<typename To , typename From > | |
| boost::enable_if< boost::mpl::and_< boost::is_same< To, std::uint64_t >, boost::is_same< From, boost::posix_time::ptime > >, To >::type | goby::util::as (const From &from) | 
| template<typename To , typename From > | |
| boost::enable_if< boost::mpl::and_< boost::is_same< To, boost::posix_time::ptime >, boost::is_same< From, std::uint64_t > >, To >::type | goby::util::as (const From &from) | 
| template<typename ReturnType > | |
| ReturnType | goby::common::goby_time () | 
| template<> | |
| std::uint64_t | goby::common::goby_time< std::uint64_t > () | 
| template<> | |
| double | goby::common::goby_time< double > () | 
| template<> | |
| boost::posix_time::ptime | goby::common::goby_time< boost::posix_time::ptime > () | 
| boost::posix_time::ptime | goby::common::goby_time () | 
| template<> | |
| std::string | goby::common::goby_time< std::string > () | 
| Returns current UTC time as a human-readable string.   | |
| std::string | goby::common::goby_time_as_string (const boost::posix_time::ptime &t=goby_time()) | 
| Simple string representation of goby_time()   | |
| std::string | goby::common::goby_file_timestamp () | 
| ISO string representation of goby_time()   | |
| boost::posix_time::ptime | goby::common::time_t2ptime (std::time_t t) | 
| convert to ptime from time_t from time.h (whole seconds since UNIX)   | |
| std::time_t | goby::common::ptime2time_t (boost::posix_time::ptime t) | 
| convert from ptime to time_t from time.h (whole seconds since UNIX)   | |
| boost::posix_time::ptime | goby::common::nmea_time2ptime (const std::string &mt) |