Apollo 10.0
自动驾驶开放平台
time_conversion.h 文件参考
#include <cstdint>
#include <ctime>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
time_conversion.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

命名空间

namespace  apollo
 class register implement
 
namespace  apollo::cyber
 
namespace  apollo::cyber::common
 

函数

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")
 

变量

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