Fastly Compute C++ SDK
Loading...
Searching...
No Matches
fastly::geo::UtcOffset Class Reference

#include <geo.h>

Public Member Functions

int8_t whole_hours ()
int16_t whole_minutes ()
int8_t minutes_past_hour ()
int32_t whole_seconds ()
int8_t seconds_past_minute ()
bool is_utc ()
 Check if the offset is exactly UTC.
bool is_positive ()
 Check if the offset is positive, or east of UTC.
bool is_negative ()
 Check if the offset is negative, or west of UTC.

Detailed Description

An offset from UTC.

This class can store values up to ±25:59:59.

Member Function Documentation

◆ is_negative()

bool fastly::geo::UtcOffset::is_negative ( )

Check if the offset is negative, or west of UTC.

◆ is_positive()

bool fastly::geo::UtcOffset::is_positive ( )

Check if the offset is positive, or east of UTC.

◆ is_utc()

bool fastly::geo::UtcOffset::is_utc ( )

Check if the offset is exactly UTC.

◆ minutes_past_hour()

int8_t fastly::geo::UtcOffset::minutes_past_hour ( )

Obtain 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.

◆ seconds_past_minute()

int8_t fastly::geo::UtcOffset::seconds_past_minute ( )

Obtain 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.

◆ whole_hours()

int8_t fastly::geo::UtcOffset::whole_hours ( )

Obtain the number of whole hours the offset is from UTC. A positive value indicates an offset to the east; a negative to the west.

◆ whole_minutes()

int16_t fastly::geo::UtcOffset::whole_minutes ( )

Obtain the number of whole minutes the offset is from UTC. A positive value indicates an offset to the east; a negative to the west.

◆ whole_seconds()

int32_t fastly::geo::UtcOffset::whole_seconds ( )

Obtain the number of whole seconds the offset is from UTC. A positive value indicates an offset to the east; a negative to the west.


The documentation for this class was generated from the following file: