HomeManualTopicsTypesSymbols

std::current_time

returns the current date and time

Parameters

None

Result

date_and_time
the current date and time

Example

current_time! $t println! t

Output

2024-01-14 9:47:43.224 GMT+1

Topic

Date and Time

See also

std::from_unix_time constructs a date-and-time object from the number of seconds since the UNIX epoch
std::data_and_time