Chromium Embedded Framework (CEF) 148.0.4+ga59e378+chromium-148.0.7778.40
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.
 
time_t GetTimeT () const
 
void SetDoubleT (double r)
 Converts to/from a double which is the number of seconds since epoch (Jan 1, 1970).
 
double GetDoubleT () const
 
void Now ()
 Set this object to now.
 
long long Delta (const CefTime &other)
 Return the delta between this object and |other| in milliseconds.
 

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)
 
int month
 1-based month (values 1 = January, etc.)
 
int day_of_week
 0-based day of week (0 = Sunday, etc.)
 
int day_of_month
 1-based day of month (1-31)
 
int hour
 Hour within the current day (0-23)
 
int minute
 Minute within the current hour (0-59)
 
int second
 Second within the current minute (0-59 plus leap seconds which may take it up to 60).
 
int millisecond
 Milliseconds within the current second (0-999)
 

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: