Chromium Embedded Framework (CEF)  122.1.5+gf09a9bc+chromium-122.0.6261.29
CefTime Class Reference

Class representing a time. More...

#include "include/internal/cef_time_wrappers.h"

Inheritance diagram for CefTime:
cef_time_t

Public Member Functions

 CefTime ()
 
 CefTime (const cef_time_t &r)
 
 CefTime (time_t r)
 
 CefTime (double r)
 
void SetTimeT (time_t r)
 Converts to/from time_t. More...
 
time_t GetTimeT () const
 
void SetDoubleT (double r)
 Converts to/from a double which is the number of seconds since epoch (Jan 1, 1970). More...
 
double GetDoubleT () const
 
void Now ()
 Set this object to now. More...
 
long long Delta (const CefTime &other)
 Return the delta between this object and |other| in milliseconds. More...
 

Additional Inherited Members

- Public Attributes inherited from cef_time_t
int year
 Four or five digit year "2007" (1601 to 30827 on Windows, 1970 to 2038 on 32-bit POSIX) More...
 
int month
 1-based month (values 1 = January, etc.) More...
 
int day_of_week
 0-based day of week (0 = Sunday, etc.) More...
 
int day_of_month
 1-based day of month (1-31) More...
 
int hour
 Hour within the current day (0-23) More...
 
int minute
 Minute within the current hour (0-59) More...
 
int second
 Second within the current minute (0-59 plus leap seconds which may take it up to 60). More...
 
int millisecond
 Milliseconds within the current second (0-999) More...
 

Detailed Description

Class representing a time.

Constructor & Destructor Documentation

◆ CefTime() [1/4]

CefTime::CefTime ( )
inline

◆ CefTime() [2/4]

CefTime::CefTime ( const cef_time_t r)
inline

◆ CefTime() [3/4]

CefTime::CefTime ( time_t  r)
inlineexplicit

◆ CefTime() [4/4]

CefTime::CefTime ( double  r)
inlineexplicit

Member Function Documentation

◆ Delta()

long long CefTime::Delta ( const CefTime other)
inline

Return the delta between this object and |other| in milliseconds.

◆ GetDoubleT()

double CefTime::GetDoubleT ( ) const
inline

◆ GetTimeT()

time_t CefTime::GetTimeT ( ) const
inline

◆ Now()

void CefTime::Now ( )
inline

Set this object to now.

◆ SetDoubleT()

void CefTime::SetDoubleT ( double  r)
inline

Converts to/from a double which is the number of seconds since epoch (Jan 1, 1970).

Webkit uses this format to represent time. A value of 0 means "not initialized".

◆ SetTimeT()

void CefTime::SetTimeT ( time_t  r)
inline

Converts to/from time_t.


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