GET api/v1/datetime/zones

Gets a list of the supported time zones.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of DateTimeZoneDto
NameDescriptionTypeAdditional information
Id

string

None.

Url

string

None.

DisplayName

string

None.

DaylightName

string

None.

StandardName

string

None.

SupportsDaylightSavingTime

boolean

None.

BaseUtcOffset

time interval

None.

Links

Collection of LinkDto

None.

Response Formats

application/json, text/json, application/senml+json

Sample:
[
  {
    "Id": "sample string 1",
    "Url": "sample string 2",
    "DisplayName": "sample string 3",
    "DaylightName": "sample string 4",
    "StandardName": "sample string 5",
    "SupportsDaylightSavingTime": true,
    "BaseUtcOffset": "00:00:00.1234567",
    "Links": [
      {
        "Href": "sample string 1",
        "Rel": "sample string 2",
        "Action": "sample string 3"
      },
      {
        "Href": "sample string 1",
        "Rel": "sample string 2",
        "Action": "sample string 3"
      }
    ]
  },
  {
    "Id": "sample string 1",
    "Url": "sample string 2",
    "DisplayName": "sample string 3",
    "DaylightName": "sample string 4",
    "StandardName": "sample string 5",
    "SupportsDaylightSavingTime": true,
    "BaseUtcOffset": "00:00:00.1234567",
    "Links": [
      {
        "Href": "sample string 1",
        "Rel": "sample string 2",
        "Action": "sample string 3"
      },
      {
        "Href": "sample string 1",
        "Rel": "sample string 2",
        "Action": "sample string 3"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfDateTimeZoneDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.DateTimeModels">
  <DateTimeZoneDto>
    <BaseUtcOffset>PT0.1234567S</BaseUtcOffset>
    <DaylightName>sample string 4</DaylightName>
    <DisplayName>sample string 3</DisplayName>
    <Id>sample string 1</Id>
    <Links xmlns:d3p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared">
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
    </Links>
    <StandardName>sample string 5</StandardName>
    <SupportsDaylightSavingTime>true</SupportsDaylightSavingTime>
    <Url>sample string 2</Url>
  </DateTimeZoneDto>
  <DateTimeZoneDto>
    <BaseUtcOffset>PT0.1234567S</BaseUtcOffset>
    <DaylightName>sample string 4</DaylightName>
    <DisplayName>sample string 3</DisplayName>
    <Id>sample string 1</Id>
    <Links xmlns:d3p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared">
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
    </Links>
    <StandardName>sample string 5</StandardName>
    <SupportsDaylightSavingTime>true</SupportsDaylightSavingTime>
    <Url>sample string 2</Url>
  </DateTimeZoneDto>
</ArrayOfDateTimeZoneDto>