Function trv::sys::show_current_datetime#

Function Documentation#

std::string trv::sys::show_current_datetime(bool utc = false)#

Return the current datetime string.

Parameters:

utc – If true, return UTC time in ISO 8601—like format, else return local time in ‘YYYY-MM-DD HH:MM:SS’ format.

Returns:

Timestamp string.