DSTListRequest

public class DSTListRequest : RequestObject

DST List Request

     var dstListRequest =DSTListRequest()
     dstListRequest.year = 2020
  • The year you want to retrieve the information for.

    Note

    The service does not restrict the years for which information can be queried. However, for years before 1970, the database does not cover all countries completely (this affects e.g. Australia, Canada and the United States of America).

    Declaration

    Swift

    public var year: Int?
  • Specify the country for which you want to retrieve information for in as an ISO3166-1-alpha-2 country code. If unspecified, information for all countries will be returned. - Specifying this parameter automatically sets the parameter onlydst to 0.

    Declaration

    Swift

    public var country: String?
  • Return only countries which actually observe DST in the queried year. Other countries will be suppressed.

    Declaration

    Swift

    public var onlyDST: Bool
  • The preferred language for the texts. An error will be raised if the language code cannot be recognized. In case the text for a specific event cannot be retrieved in the requested language it will be returned in English instead. This is also the default language.

    Note

    NOTE:In case you have specific needs for a certain language/translation, please email api@timeanddate.com.

    Note

    NOTE:Due to technical limitations, time zone names cannot be translated at the moment.

    Declaration

    Swift

    public var lang: String
  • For every time zone/country, list the individual places that belong to each record.

    Declaration

    Swift

    public var listPlaces: Bool
  • Add a list of time changes during the year to the dstentry object. This listing e.g. shows changes caused by daylight savings time.

    Declaration

    Swift

    public var timeChanges: Bool
  • Adds verbose time specification to all ISO 8601 time stamps. To limit the result size, this parameter is only honored if a single country is queried – otherwise verbose time stamps are suppressed.

    Declaration

    Swift

    public var verbosetime: Bool