HomeManualTopicsTypesSymbols

std::hour_of

the hour of a date-and-time object

Parameter

self
the date-and-time object

Result

hour
the hour of the date-and-time object

Description

Returned values are in the range 0 to 23.

Example

current_time! $t println! hour_of(t)

Output

8

Topic

Date and Time

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::day_of_week_of the day of the week 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::time_shift_of

Implemented by

std_types::date_and_time returns the hour of the day