HomeManualTopicsTypesSymbols

std_types::date_and_time/std::to_string

returns a string representation of the date-and-time object

Parameter

self
the date-and-time object

Results

None

Example

current_time! $t println! t

Output

2024-01-14 9:12:42.792 GMT+1

Topics

Date and Time

Strings

Implements

std::to_string returns a human readable presentation of the object

See also

std::year_of the calendar year of a date-and-time object
std::month_of the month of a date-and-time object
std::day_of the day of a month of a date-and-time object
std::hour_of the hour of a date-and-time object
std::minute_of the minute of an hour of a date-and-time object
std::second_of the second of a minute of a date-and-time object
std::day_of_week_of the day of the week of a date-and-time object
std::time_shift_of