offset-in-hours
ErrorsCollection

offset-in-hours

Synthesised documentation from type/DateTime

From type/DateTime

See Original text in context

method offset-in-hours(DateTime:D: --> Real:D)

Returns the time zone in hours as an offset from UTC.

say DateTime.new('2015-12-24T12:23:00+0200').offset-in-hours;   # OUTPUT: «2␤»