Classes

The following classes are available globally.

  • For more information, see astrodata – Calculate data on Astronomical Objects on Specific Times

    var astrodatRequest = AstrodataRequest()
    astrodatRequest.objects = "sun"
    astrodatRequest.placeId = "norway/oslo"
    astrodatRequest.interval = "2020-06-02T11:09:49"
    
    See more

    Declaration

    Swift

    public class AstrodataRequest : RequestObject
  • See more

    Declaration

    Swift

    public class AstrodataService : BaseService
  • Astro Data Response Object

    See more

    Declaration

    Swift

    public class AstroDataResponse : BaseResponse
  • This is the request parameters for handling Astronomy Service API request For more information, see astronomy – Get Information About Astronomical Objects

        var astronomyRequest = AstronomyReques()
        astronomyRequest.objects = "sun"
        astronomyRequest.placeId = "norway/oslo"
    
    See more

    Declaration

    Swift

    public class AstronomyRequest : RequestObject
  • Service class for Astronomy APi Calls

    See more

    Declaration

    Swift

    public class AstronomyService : BaseService
  • Astronomy Service Response

    See more

    Declaration

    Swift

    public class AstronomyDataResponse : BaseResponse
  • businessdate – Calculate business date from a given number of days The businessdate service can be used to find a business date from a specified number of days. You can choose if you want to calculate the business date by adding (default) or subtracting the given days, and whether or not a specific filter should be applied to the result. By default the result will be filtered on excluding weekends and public holidays, but you can specify a custom filter to modify this.

    • Example:

      var businessDateRequest = BusinessDateRequest()
      businessDateRequest.placeId = "norway/Oslo"
      businessDateRequest.country = "no"
      
    See more

    Declaration

    Swift

    public class BusinessDateRequest : RequestObject
  • Service class for Astronomy APi Calls

    See more

    Declaration

    Swift

    public class BusinessDateService : BaseService
  • BusinessDateResponse Object

    See more

    Declaration

    Swift

    public class BusinessDateResponse : BaseResponse
  • businessduration – Calculate business days in a specified date range The businessduration service can be used to calculate the number of business days between a specified start date and end date. When you query the businessduration service with a placeid or a country, a start date and an end date the service will return the number of business days in that date range by excluding public holidays and weekends. Furthermore, you can apply additional filters such as individual days and whether or not the calculation should include the filter result or exclude it.

         businessDurationRequest = BusinessDurationRequest()
         businessDurationRequest.placeId = "norway/Oslo"
         businessDurationRequest.country = "no"
    
    See more

    Declaration

    Swift

    public class BusinessDurationRequest : RequestObject
  • Service class for Busimess Duration Api calls

    See more

    Declaration

    Swift

    public class BusinessDurationService : BaseService
  • converttime – Convert Time Between Time Zones The converttime service can be used to convert any time from UTC or any of the supported locations to any other of the supported locations. You have to specify a time stamp either in ISO8601 representation via the iso parameter, or you have to specify the individual components of the time stamp. Skipped components will not yield an error message, but use a default value instead (which corresponds to 01.01.2001, 00:00:00).

    See also

    converttime
         var convertTimeRequest =ConvertTimeRequest()
         convertTimeRequest.fromPlaceId = "australia/lord-howe-island"
         convertTimeRequest.toPlaceId = "mozambique/maputo"
         convertTimeRequest.isoTimeStamp = "2020-06-08T09:18:16"
    
    See more

    Declaration

    Swift

    public class ConvertTimeRequest : RequestObject
  • Service class for Convert Time API Calls

    See more

    Declaration

    Swift

    public class ConvertTimeService : BaseService
  • Convert Time Response

    See also

    ConvertTime
    See more

    Declaration

    Swift

    public class ConvertTimeResponse : BaseResponse
  • DST List Request

         var dstListRequest =DSTListRequest()
         dstListRequest.year = 2020
    
    See more

    Declaration

    Swift

    public class DSTListRequest : RequestObject
  • 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
    See more

    Declaration

    Swift

    public class DSTListService : BaseService
  • Declaration

    Swift

    public class DSTListResponse : BaseResponse
  • HolidaysRequest

         holidayRequest = HolidaysRequest()
         holidayRequest.country = "no"
         holidayRequest.year = 2020
    
    See more

    Declaration

    Swift

    public class HolidaysRequest : RequestObject
  • Service call fo Holiday API The holidays service can be used to retrieve the list of holidays for a country.

    Note

    Note:Some countries (e.g. China and Russia) occasionally declare working days as non-working days to form longer periods of consecutive non-working days. In exchange, weekend days become normal working days. Those days are indicated with the holiday type weekend. Please see also the discussion of the holiday types.

    Note

    Note:At least request version 2 shall be used for the holiday service. Request version 1 contains a problem for holidays with time stamps (affects e.g. time zone events and seasons): data has no time zone information attached but is output with inconsistent time zone.
    See more

    Declaration

    Swift

    public class HolidaysService : BaseService
  • Declaration

    Swift

    public class HolidaysResponse : BaseResponse
  • PlacesResponse

    See more

    Declaration

    Swift

    public class PlacesResponse : BaseResponse
  • Place Request

    See also

    places
         var placeRequest = PlacesRequest()
    
    See more

    Declaration

    Swift

    public class PlacesRequest : RequestObject
  • Service call for Places API The places service can be used to retrieve the list of supported places. The ids for the places are then used in the other services to indicate the location to be queried.

    See more

    Declaration

    Swift

    public class PlacesService : BaseService
  • Declaration

    Swift

    public class TimeResponse : BaseResponse
  • Tie Service Request

         var timeRequest = TimeRequest()
         timeRequest.placeId = "norway/oslo"
    
    See more

    Declaration

    Swift

    public class TimeRequest : RequestObject
  • Service call for TimeServce API The timeservice service can be used to retrieve the current time in one or more places. Additionally, information about time zones and related changes and the time of sunrise and sunset can be queried.

    See more

    Declaration

    Swift

    public class TimeService : BaseService