Elaztek Developer Hub
Blamite Game Engine - Strings  00326.06.27.21.0407.blamite
A library containing general purpose utilities and classes for use in multiple projects.
BlamStrings::Utils::DateTime Namespace Reference

Utilities relating to date and time. More...

Functions

STRINGS_API std::string GetDateTime (const char *format)
 Retrieves the current date/time in the specified format. More...
 
STRINGS_API std::string GetTimeLogFormat ()
 Retrieves the current date/time in the following format, for use in the logger:

MM.DD.YY HH:MM:SS.MIL

More...
 

Detailed Description

Utilities relating to date and time.

Function Documentation

◆ GetDateTime()

std::string BlamStrings::Utils::DateTime::GetDateTime ( const char *  format)

Retrieves the current date/time in the specified format.

Parameters
format- The desired format for the date and time.
Returns
String containing the date and time in the desired format.

◆ GetTimeLogFormat()

std::string BlamStrings::Utils::DateTime::GetTimeLogFormat ( )

Retrieves the current date/time in the following format, for use in the logger:

MM.DD.YY HH:MM:SS.MIL

Returns
String containing the date and time in a logger-ready format.