Chromium Embedded Framework (CEF)  109.0.1+gcd5e37a+chromium-109.0.5414.8
cef_time.h File Reference
#include <time.h>
#include "include/base/cef_basictypes.h"
#include "include/internal/cef_export.h"

Classes

struct  cef_basetime_t
 Represents a wall clock time in UTC. More...
 
struct  cef_time_t
 Time information. More...
 

Functions

CEF_EXPORT int cef_time_to_timet (const cef_time_t *cef_time, time_t *time)
 Converts cef_time_t to/from time_t. More...
 
CEF_EXPORT int cef_time_from_timet (time_t time, cef_time_t *cef_time)
 
CEF_EXPORT int cef_time_to_doublet (const cef_time_t *cef_time, double *time)
 Converts cef_time_t to/from a double which is the number of seconds since epoch (Jan 1, 1970). More...
 
CEF_EXPORT int cef_time_from_doublet (double time, cef_time_t *cef_time)
 
CEF_EXPORT int cef_time_now (cef_time_t *cef_time)
 Retrieve the current system time. More...
 
CEF_EXPORT cef_basetime_t cef_basetime_now ()
 Retrieve the current system time. More...
 
CEF_EXPORT int cef_time_delta (const cef_time_t *cef_time1, const cef_time_t *cef_time2, long long *delta)
 Retrieve the delta in milliseconds between two time values. More...
 
CEF_EXPORT int cef_time_to_basetime (const cef_time_t *from, cef_basetime_t *to)
 Converts cef_time_t to cef_basetime_t. More...
 
CEF_EXPORT int cef_time_from_basetime (const cef_basetime_t from, cef_time_t *to)
 Converts cef_basetime_t to cef_time_t. More...
 

Function Documentation

◆ cef_basetime_now()

CEF_EXPORT cef_basetime_t cef_basetime_now ( )

Retrieve the current system time.

◆ cef_time_delta()

CEF_EXPORT int cef_time_delta ( const cef_time_t cef_time1,
const cef_time_t cef_time2,
long long *  delta 
)

Retrieve the delta in milliseconds between two time values.

Returns true (1) on success and false (0) on failure.

◆ cef_time_from_basetime()

CEF_EXPORT int cef_time_from_basetime ( const cef_basetime_t  from,
cef_time_t to 
)

Converts cef_basetime_t to cef_time_t.

Returns true (1) on success and false (0) on failure.

◆ cef_time_from_doublet()

CEF_EXPORT int cef_time_from_doublet ( double  time,
cef_time_t cef_time 
)

◆ cef_time_from_timet()

CEF_EXPORT int cef_time_from_timet ( time_t  time,
cef_time_t cef_time 
)

◆ cef_time_now()

CEF_EXPORT int cef_time_now ( cef_time_t cef_time)

Retrieve the current system time.

Returns true (1) on success and false (0) on failure.

◆ cef_time_to_basetime()

CEF_EXPORT int cef_time_to_basetime ( const cef_time_t from,
cef_basetime_t to 
)

Converts cef_time_t to cef_basetime_t.

Returns true (1) on success and false (0) on failure.

◆ cef_time_to_doublet()

CEF_EXPORT int cef_time_to_doublet ( const cef_time_t cef_time,
double *  time 
)

Converts cef_time_t 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". Returns true (1) on success and false (0) on failure.

◆ cef_time_to_timet()

CEF_EXPORT int cef_time_to_timet ( const cef_time_t cef_time,
time_t *  time 
)

Converts cef_time_t to/from time_t.

Returns true (1) on success and false (0) on failure.