TimezoneResultObject

Objective-C


@interface TimezoneResultObject : NSObject

Swift

class TimezoneResultObject : NSObject

This class handles the timezone result.

  • Initializes and returns a newly allocated object using the model data.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithModelData:(nonnull void *)data;
  • Returns the model data.

    Declaration

    Objective-C

    - (nonnull void *)getModelData;
  • Get the offset for daylight-savings time.

    Declaration

    Objective-C

    - (int)getDstOffset;

    Swift

    func getDstOffset() -> Int32
  • Get the calculated offset ( in seconds ) for the given location.

    Declaration

    Objective-C

    - (int)getOffset;

    Swift

    func getOffset() -> Int32
  • Get the offset from UTC ( in seconds ) for a given location.

    Declaration

    Objective-C

    - (int)getUtcOffset;

    Swift

    func getUtcOffset() -> Int32
  • Get the status of the response.

    Declaration

    Objective-C

    - (TimezoneStatus)getStatus;

    Swift

    func getStatus() -> TimezoneStatus
  • Get the ID of the timezone.

    Declaration

    Objective-C

    - (nonnull NSString *)getTimezoneId;

    Swift

    func getTimezoneId() -> String
  • Get the local time of the timezone in relation to query time.

    Declaration

    Objective-C

    - (nullable TimeObject *)getLocalTime;

    Swift

    func getLocalTime() -> TimeObject?