Skip to content

Instantly share code, notes, and snippets.

@fukasawah
Created January 18, 2022 12:27
Show Gist options
  • Save fukasawah/c8999bbf00bcee6f130149fe4df8d831 to your computer and use it in GitHub Desktop.
Save fukasawah/c8999bbf00bcee6f130149fe4df8d831 to your computer and use it in GitHub Desktop.
Azure FunctionのタイムゾーンとWEBSITE_TIME_ZONEが機能するか検証(2022/01/18)
{
"now": "2022-01-18T04:43:11.5121004+00:00",
"utcNow": "2022-01-18T04:43:11.5121027Z",
"timezone": {
"Id": "Etc/UTC",
"DisplayName": "(UTC+00:00) GMT",
"StandardName": "GMT",
"DaylightName": "GMT",
"BaseUtcOffset": "00:00:00",
"AdjustmentRules": [
{
"DateStart": "0001-01-01T00:00:00",
"DateEnd": "9999-12-31T23:59:59.9999999",
"DaylightDelta": "00:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
}
],
"SupportsDaylightSavingTime": true
},
"envWebsiteTimeZone": "Asia/Tokyo"
}
{
"now": "2022-01-18T04:40:28.4045172+00:00",
"utcNow": "2022-01-18T04:40:28.4045192Z",
"timezone": {
"Id": "Etc/UTC",
"DisplayName": "(UTC+00:00) GMT",
"StandardName": "GMT",
"DaylightName": "GMT",
"BaseUtcOffset": "00:00:00",
"AdjustmentRules": [
{
"DateStart": "0001-01-01T00:00:00",
"DateEnd": "9999-12-31T23:59:59.9999999",
"DaylightDelta": "00:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
}
],
"SupportsDaylightSavingTime": true
},
"envWebsiteTimeZone": "(none)"
}
{
"now": "2022-01-18T21:03:58.8085317+09:00",
"utcNow": "2022-01-18T12:03:58.808534Z",
"timezone": {
"Id": "Asia/Tokyo",
"DisplayName": "(UTC+09:00) GMT+09:00",
"StandardName": "GMT+09:00",
"DaylightName": "GMT+09:00",
"BaseUtcOffset": "09:00:00",
"AdjustmentRules": [
{
"DateStart": "0001-01-01T00:00:00",
"DateEnd": "1887-12-31T14:59:59.9999999Z",
"DaylightDelta": "00:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:18:00",
"NoDaylightTransitions": true
},
{
"DateStart": "1887-12-31T15:00:00Z",
"DateEnd": "1948-05-01T14:59:59.9999999Z",
"DaylightDelta": "00:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
},
{
"DateStart": "1948-05-01T15:00:00Z",
"DateEnd": "1948-09-11T14:59:59.9999999Z",
"DaylightDelta": "01:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00.002",
"Month": 1,
"Week": 1,
"Day": 1,
"DayOfWeek": 0,
"IsFixedDateRule": true
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
},
{
"DateStart": "1948-09-11T15:00:00Z",
"DateEnd": "1949-04-02T14:59:59.9999999Z",
"DaylightDelta": "00:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
},
{
"DateStart": "1949-04-02T15:00:00Z",
"DateEnd": "1949-09-10T14:59:59.9999999Z",
"DaylightDelta": "01:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00.002",
"Month": 1,
"Week": 1,
"Day": 1,
"DayOfWeek": 0,
"IsFixedDateRule": true
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
},
{
"DateStart": "1949-09-10T15:00:00Z",
"DateEnd": "1950-05-06T14:59:59.9999999Z",
"DaylightDelta": "00:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
},
{
"DateStart": "1950-05-06T15:00:00Z",
"DateEnd": "1950-09-09T14:59:59.9999999Z",
"DaylightDelta": "01:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00.002",
"Month": 1,
"Week": 1,
"Day": 1,
"DayOfWeek": 0,
"IsFixedDateRule": true
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
},
{
"DateStart": "1950-09-09T15:00:00Z",
"DateEnd": "1951-05-05T14:59:59.9999999Z",
"DaylightDelta": "00:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
},
{
"DateStart": "1951-05-05T15:00:00Z",
"DateEnd": "1951-09-08T14:59:59.9999999Z",
"DaylightDelta": "01:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00.002",
"Month": 1,
"Week": 1,
"Day": 1,
"DayOfWeek": 0,
"IsFixedDateRule": true
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
},
{
"DateStart": "1951-09-08T15:00:00Z",
"DateEnd": "9999-12-31T23:59:59.9999999",
"DaylightDelta": "00:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
}
],
"SupportsDaylightSavingTime": true
},
"envWebsiteTimeZone": "Asia/Tokyo"
}
{
"now": "2022-01-18T11:59:37.8891262+00:00",
"utcNow": "2022-01-18T11:59:37.8891285Z",
"timezone": {
"Id": "Etc/UTC",
"DisplayName": "(UTC+00:00) GMT",
"StandardName": "GMT",
"DaylightName": "GMT",
"BaseUtcOffset": "00:00:00",
"AdjustmentRules": [
{
"DateStart": "0001-01-01T00:00:00",
"DateEnd": "9999-12-31T23:59:59.9999999",
"DaylightDelta": "00:00:00",
"DaylightTransitionStart": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"DaylightTransitionEnd": {
"TimeOfDay": "0001-01-01T00:00:00",
"Month": 0,
"Week": 0,
"Day": 0,
"DayOfWeek": 0,
"IsFixedDateRule": false
},
"BaseUtcOffsetDelta": "00:00:00",
"NoDaylightTransitions": true
}
],
"SupportsDaylightSavingTime": true
},
"envWebsiteTimeZone": "(none)"
}
{
"now": "2022-01-18T13:50:01.0567863+09:00",
"utcNow": "2022-01-18T04:50:01.0567916Z",
"timezone": {
"Id": "Tokyo Standard Time",
"DisplayName": "(UTC+09:00) Osaka, Sapporo, Tokyo",
"StandardName": "Tokyo Standard Time",
"DaylightName": "Tokyo Daylight Time",
"BaseUtcOffset": "09:00:00",
"AdjustmentRules": null,
"SupportsDaylightSavingTime": false
},
"envWebsiteTimeZone": "Tokyo Standard Time"
}
{
"now": "2022-01-18T13:50:01.0567863+09:00",
"utcNow": "2022-01-18T04:50:01.0567916Z",
"timezone": {
"Id": "Tokyo Standard Time",
"DisplayName": "(UTC+09:00) Osaka, Sapporo, Tokyo",
"StandardName": "Tokyo Standard Time",
"DaylightName": "Tokyo Daylight Time",
"BaseUtcOffset": "09:00:00",
"AdjustmentRules": null,
"SupportsDaylightSavingTime": false
},
"envWebsiteTimeZone": "Tokyo Standard Time"
}
{
"now": "2022-01-18T21:04:53.5051931+09:00",
"utcNow": "2022-01-18T12:04:53.5051939Z",
"timezone": {
"Id": "Tokyo Standard Time",
"DisplayName": "(UTC+09:00) Osaka, Sapporo, Tokyo",
"StandardName": "Tokyo Standard Time",
"DaylightName": "Tokyo Daylight Time",
"BaseUtcOffset": "09:00:00",
"AdjustmentRules": null,
"SupportsDaylightSavingTime": false
},
"envWebsiteTimeZone": "Tokyo Standard Time"
}
{
"now": "2022-01-18T12:02:04.4523923+00:00",
"utcNow": "2022-01-18T12:02:04.4523934Z",
"timezone": {
"Id": "UTC",
"DisplayName": "(UTC) Coordinated Universal Time",
"StandardName": "Coordinated Universal Time",
"DaylightName": "Coordinated Universal Time",
"BaseUtcOffset": "00:00:00",
"AdjustmentRules": null,
"SupportsDaylightSavingTime": false
},
"envWebsiteTimeZone": "(none)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment