NebulaGraph CPP Client  release-3.8
TimeConversion Class Reference
Collaboration diagram for TimeConversion:

Public Member Functions

 TimeConversion (...)=delete
 

Static Public Member Functions

static int64_t dateTimeDiffSeconds (const DateTime &dateTime0, const DateTime &dateTime1)
 
static int64_t dateTimeToUnixSeconds (const DateTime &dateTime)
 
static DateTime unixSecondsToDateTime (int64_t seconds)
 
static DateTime dateTimeShift (const DateTime &dateTime, int64_t offsetSeconds)
 
static int64_t dateToUnixSeconds (const Date &date)
 
static Date unixSecondsToDate (int64_t seconds)
 
static Date dateShift (const Date &date, int64_t offsetSeconds)
 
static int64_t timeToSeconds (const Time &time)
 
static Time unixSecondsToTime (int64_t seconds)
 
static Time timeShift (const Time &time, int64_t offsetSeconds)
 
static bool isLeapYear (int16_t year)
 

Static Public Attributes

static const DateTime kEpoch
 
static constexpr int kDayOfLeapYear = 366
 
static constexpr int kDayOfCommonYear = 365
 
static constexpr int64_t kSecondsOfMinute = 60
 
static constexpr int64_t kSecondsOfHour = 60 * kSecondsOfMinute
 
static constexpr int64_t kSecondsOfDay = 24 * kSecondsOfHour
 

Detailed Description

Definition at line 15 of file TimeConversion.h.


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