Classes
The following classes are available globally.
-
For more information, see astrodata – Calculate data on Astronomical Objects on Specific Times
See morevar astrodatRequest = AstrodataRequest() astrodatRequest.objects = "sun" astrodatRequest.placeId = "norway/oslo" astrodatRequest.interval = "2020-06-02T11:09:49"
Declaration
Swift
public class AstrodataRequest : RequestObject
-
- Service reference: Astrodata Service
Declaration
Swift
public class AstrodataService : BaseService
-
Astro Data Response Object
See moreDeclaration
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
See morevar astronomyRequest = AstronomyReques() astronomyRequest.objects = "sun" astronomyRequest.placeId = "norway/oslo"
Declaration
Swift
public class AstronomyRequest : RequestObject
-
Declaration
Swift
public class AstronomyService : BaseService
-
Astronomy Service Response
See moreDeclaration
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.
See also
Example:
var businessDateRequest = BusinessDateRequest() businessDateRequest.placeId = "norway/Oslo" businessDateRequest.country = "no"
Declaration
Swift
public class BusinessDateRequest : RequestObject
-
Declaration
Swift
public class BusinessDateService : BaseService
-
BusinessDateResponse Object
See moreDeclaration
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.
See morebusinessDurationRequest = BusinessDurationRequest() businessDurationRequest.placeId = "norway/Oslo" businessDurationRequest.country = "no"
Declaration
Swift
public class BusinessDurationRequest : RequestObject
-
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
See morevar convertTimeRequest =ConvertTimeRequest() convertTimeRequest.fromPlaceId = "australia/lord-howe-island" convertTimeRequest.toPlaceId = "mozambique/maputo" convertTimeRequest.isoTimeStamp = "2020-06-08T09:18:16"
Declaration
Swift
public class ConvertTimeRequest : RequestObject
-
Declaration
Swift
public class ConvertTimeService : BaseService
-
Declaration
Swift
public class ConvertTimeResponse : BaseResponse
-
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
DSTListServiceDeclaration
Swift
public class DSTListService : BaseService
-
Declaration
Swift
public class DSTListResponse : BaseResponse
-
HolidaysRequest
See also
holidays – Retrieve List of Holidays
See moreholidayRequest = HolidaysRequest() holidayRequest.country = "no" holidayRequest.year = 2020
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 also
holidays – Retrieve List of HolidaysDeclaration
Swift
public class HolidaysService : BaseService
-
Declaration
Swift
public class HolidaysResponse : BaseResponse
-
Declaration
Swift
public class PlacesResponse : BaseResponse
-
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 moreDeclaration
Swift
public class PlacesService : BaseService
-
Declaration
Swift
public class TimeResponse : BaseResponse
-
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 moreDeclaration
Swift
public class TimeService : BaseService