Home
Manual
Topics
Types
Symbols
std::date_and_time
constructs a date-and-time object
Parameters
year
the year
month
the month of the year
day
the day of the month
hour
the hour of the day
minute
the minute of the hour
second
the second of the minute
Results
None
Example
$t date_and_time(1993 7 14 12 34 56) println! t
Output
1993-07-14 14:34:56.000 GMT+2
Topic
Date and Time
See also
std::current_time
returns the current date and time
std::from_unix_time
constructs a date-and-time object from the number of seconds since the UNIX epoch