UtcOffset
Include fastly/geo.h to use this class.
An offset from UTC.
This class can store values up to ±25:59:59.
Methods
is_negative
View sourcebool fastly::geo::UtcOffset::is_negative()Check if the offset is negative, or west of UTC.
Returns
is_positive
View sourcebool fastly::geo::UtcOffset::is_positive()Check if the offset is positive, or east of UTC.
Returns
is_utc
View sourcebool fastly::geo::UtcOffset::is_utc()Check if the offset is exactly UTC.
Returns
minutes_past_hour
View sourceObtain the number of minutes past the hour the offset is from UTC. A positive value indicates an offset to the east; a negative to the west.
Returns
seconds_past_minute
View sourceObtain the number of seconds past the minute the offset is from UTC. A positive value indicates an offset to the east; a negative to the west.
Returns
whole_hours
View sourceObtain the number of whole hours the offset is from UTC. A positive value indicates an offset to the east; a negative to the west.
Returns
whole_minutes
View sourceObtain the number of whole minutes the offset is from UTC. A positive value indicates an offset to the east; a negative to the west.
Returns
whole_seconds
View sourceObtain the number of whole seconds the offset is from UTC. A positive value indicates an offset to the east; a negative to the west.
Returns