ScummVM API documentation
Common::DateTime Namespace Reference

Functions

TimeDate int64ToTimeDate (int64 integer)
 
int64_t dateTimeToInt64 (const TimeDate &timeDate)
 
Common::String formatTime (int64 integer)
 
int64 getTime ()
 

Detailed Description

Utility functions for converting a TimeDate structure into an integer representation of the time, and vice versa. The integer representation is the number of seconds since the Unix epoch (1970-01-01 00:00:00 UTC).

Function Documentation

◆ int64ToTimeDate()

TimeDate Common::DateTime::int64ToTimeDate ( int64  integer)

Convert a time value (number of seconds since the Unix epoch) to a TimeDate struct representing the corresponding date and time components.

◆ dateTimeToInt64()

int64_t Common::DateTime::dateTimeToInt64 ( const TimeDate timeDate)

Convert a TimeDate struct representing date and time components to a time value (number of seconds since the Unix epoch).

◆ formatTime()

Common::String Common::DateTime::formatTime ( int64  integer)

Convert a time value (number of seconds since the Unix epoch) to a human-readable string format.

◆ getTime()

int64 Common::DateTime::getTime ( )

Get the current time as a time value (number of seconds since the Unix epoch).