Date and time.
Date and time.
class Time::Info
Information about a specific timestamp, simplified into its common components.
int64 Time::get_Stamp()
Gets the current machine timestamp in seconds. Also commonly referred to as epoch time.
int64 uint64 Time::get_FrameCount()
Gets the number of frames that Openplanet has processed. Note that this is not the same as the game's own frame counter; it may be off by a number of frames.
uint64 string Time::FormatString(const string&in format, int64 stamp = -1)
Format a time into the given format as specified by strftime in the local time.
string string Time::FormatStringUTC(const string&in format, int64 stamp = -1)
Format a time into the given format as specified by strftime in UTC.
string int64 Time::ParseFormatString(const string&in format, const string&in stamp)
Parses a time from a string into a timestamp.
int64 string Time::Format(uint64 time, bool fractions = true, bool forceMinutes = true, bool forceHours = false, bool short = false)
Format a game time (in milliseconds) to its race time representation. For example, 61234 will be "1:01.234".
string string Time::Format(int64 time, bool fractions = true, bool forceMinutes = true, bool forceHours = false, bool short = false)
Format a game time (in milliseconds) to its race time representation. For example, 61234 will be "1:01.234".
string uint64 Time::ParseRelativeTime(const string&in time)
Parses a relative game time from its race time representation.
uint64 Info Time::Parse(int64 stamp = -1)
Parses a time into a structure containing individial time components in the local time.
Time::Info Info Time::ParseUTC(int64 stamp = -1)
Parses a time into a structure containing individial time components in UTC.
Time::Info