Apollo  6.0
Open source self driving car software
Namespaces | Functions | Variables
time_conversion.h File Reference
#include <cstdint>
#include <ctime>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for time_conversion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 apollo
 PlanningContext is the runtime context in planning. It is persistent across multiple frames.
 
 apollo::cyber
 
 apollo::cyber::common
 

Functions

template<typename T >
apollo::cyber::common::UnixToGpsSeconds (T unix_seconds)
 
int64_t apollo::cyber::common::UnixToGpsMicroseconds (int64_t unix_microseconds)
 
int64_t apollo::cyber::common::UnixToGpsNanoseconds (int64_t unix_nanoseconds)
 
template<typename T >
apollo::cyber::common::GpsToUnixSeconds (T gps_seconds)
 
int64_t apollo::cyber::common::GpsToUnixMicroseconds (int64_t gps_microseconds)
 
int64_t apollo::cyber::common::GpsToUnixNanoseconds (int64_t gps_nanoseconds)
 
uint64_t apollo::cyber::common::GpsToUnixMicroseconds (uint64_t gps_microseconds)
 
uint64_t apollo::cyber::common::GpsToUnixNanoseconds (uint64_t gps_nanoseconds)
 
uint64_t apollo::cyber::common::StringToUnixSeconds (const std::string &time_str, const std::string &format_str="%Y-%m-%d %H:%M:%S")
 
std::string apollo::cyber::common::UnixSecondsToString (uint64_t unix_seconds, const std::string &format_str="%Y-%m-%d-%H:%M:%S")
 

Variables

constexpr int32_t apollo::cyber::common::UNIX_GPS_DIFF = 315964800
 
constexpr int64_t apollo::cyber::common::ONE_MILLION = 1000000L
 
constexpr int64_t apollo::cyber::common::ONE_BILLION = 1000000000L