HomeManualTopicsTypesSymbols

std_types::date_and_time/std::time_shift_of

returns the time shift of a date-and-time object

Parameter

self
the date-and-time object

Result

time_shift
the time shift of the date-and-time object in seconds

Example

current_time! $t println! t println! time_shift_of(t)

Output

2024-01-14 9:46:17.388 GMT+1 3600

Topic

Date and Time

Implements

std::time_shift_of

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::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