TimezoneContext

Objective-C


@interface TimezoneContext : NSObject

Swift

class TimezoneContext : NSObject

This class handles the timezone.

  • Return singleton instance.

    Declaration

    Objective-C

    + (nonnull TimezoneContext *)sharedInstance;

    Swift

    class func sharedInstance() -> TimezoneContext
  • Returns the timezone from coordinates.

    Declaration

    Objective-C

    - (nonnull TimezoneResultObject *)
        getOfflineTimezoneInfo:(nonnull CoordinatesObject *)location
                          time:(nonnull TimeObject *)time;

    Swift

    func getOfflineTimezoneInfo(_ location: CoordinatesObject, time: TimeObject) -> TimezoneResultObject

    Parameters

    location

    The location from where to get the timezone result.

    time

    The time for which offsets are calculated ( UTC ). @details The result will be computed using the available offline resource.