DSTListService

public class DSTListService : BaseService

Service class for DST List APi Calls The dstlist service can be used to obtain data about time zones for all supported countries in our database. This includes the start and end date of daylight savings time, and UTC offset for the time zones.

The resulting data is aggregated on country and time zone level. By default, only information from countries which actually observe DST is returned without listing the individually affected locations – see the parameters listplaces and onlydst to change this behavior.

See also

DSTListService
  • Public function DST List

    Note

    This class needs to be initialized with the accessKey and SecretKey
    var dstListService = DSTListService(accessKey: "[YOUR_ACCESS_KEY]", secretKey:"[YOUR_SECRET_KEY]")
    var dstListRequest = DSTListRequest()
    dstListRequest.year = 2020
    dstListService.getDSTListInfo(request:dstListRequest) { (result, error) in }
    

    Declaration

    Swift

    public func getDSTList(request: DSTListRequest, completionHandler: @escaping (_ result: DSTListResponse?, _ error: ServiceErrors?) -> Void)

    Parameters

    request

    DSTListRequest object

    Return Value

    • DSTListResponse
    • Service Errors