timelogic-api 1.0.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +314 -133
- data/docs/BulkError.md +1 -1
- data/docs/CalendarResponse.md +2 -2
- data/docs/DstResponse.md +2 -2
- data/docs/ElapsedResponse.md +1 -1
- data/docs/ErrorResponse.md +1 -1
- data/docs/JwkKey.md +5 -1
- data/docs/TimeApi.md +157 -155
- data/docs/TimePayload.md +1 -1
- data/docs/TimezoneMatch.md +3 -23
- data/docs/TimezoneResponse.md +46 -0
- data/lib/timelogic-api/api/time_api.rb +175 -180
- data/lib/timelogic-api/api/utility_api.rb +1 -1
- data/lib/timelogic-api/api_client.rb +3 -1
- data/lib/timelogic-api/api_error.rb +1 -1
- data/lib/timelogic-api/configuration.rb +1 -1
- data/lib/timelogic-api/models/api_error.rb +1 -1
- data/lib/timelogic-api/models/bulk_error.rb +2 -2
- data/lib/timelogic-api/models/calendar_response.rb +3 -1
- data/lib/timelogic-api/models/diff_endpoint_ref.rb +1 -1
- data/lib/timelogic-api/models/diff_response.rb +1 -1
- data/lib/timelogic-api/models/dst_response.rb +3 -1
- data/lib/timelogic-api/models/elapsed_response.rb +2 -2
- data/lib/timelogic-api/models/error_response.rb +2 -2
- data/lib/timelogic-api/models/get_current_time200_response.rb +1 -1
- data/lib/timelogic-api/models/jwk_key.rb +27 -5
- data/lib/timelogic-api/models/jwks_response.rb +1 -1
- data/lib/timelogic-api/models/time_payload.rb +2 -1
- data/lib/timelogic-api/models/time_payload_bulk_item.rb +1 -1
- data/lib/timelogic-api/models/time_payload_bulk_response.rb +29 -183
- data/lib/timelogic-api/models/timezone_match.rb +6 -186
- data/lib/timelogic-api/models/{timezone_offset_response.rb → timezone_response.rb} +21 -14
- data/lib/timelogic-api/version.rb +1 -1
- data/lib/timelogic-api/world_time_api.rb +192 -0
- data/lib/timelogic-api.rb +3 -4
- metadata +5 -8
- data/docs/GetTimezone200Response.md +0 -49
- data/docs/TimezoneOffsetResponse.md +0 -44
- data/docs/TimezoneResolvedResponse.md +0 -42
- data/lib/timelogic-api/models/get_timezone200_response.rb +0 -105
- data/lib/timelogic-api/models/timezone_resolved_response.rb +0 -434
data/docs/TimePayload.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
| **iso_local** | **String** | | |
|
|
11
11
|
| **rfc2822** | **String** | | |
|
|
12
12
|
| **human** | **String** | | |
|
|
13
|
-
| **day_number** | **Integer** |
|
|
13
|
+
| **day_number** | **Integer** | Day of the week counted from Sunday (1 = Sunday, 2 = Monday ... 7 = Saturday). | |
|
|
14
14
|
| **day_short** | **String** | | |
|
|
15
15
|
| **day_full** | **String** | | |
|
|
16
16
|
| **timezone** | **String** | | |
|
data/docs/TimezoneMatch.md
CHANGED
|
@@ -4,19 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
8
|
-
| **
|
|
9
|
-
| **
|
|
10
|
-
| **iso_local** | **String** | | |
|
|
11
|
-
| **rfc2822** | **String** | | |
|
|
12
|
-
| **human** | **String** | | |
|
|
13
|
-
| **day_number** | **Integer** | | |
|
|
14
|
-
| **day_short** | **String** | | |
|
|
15
|
-
| **day_full** | **String** | | |
|
|
16
|
-
| **timezone** | **String** | | |
|
|
17
|
-
| **formatted** | **String** | | [optional] |
|
|
18
|
-
| **offset** | **Integer** | | |
|
|
19
|
-
| **dst** | **Boolean** | | |
|
|
7
|
+
| **timezone** | **String** | IANA timezone name. | |
|
|
8
|
+
| **offset** | **Integer** | Current UTC offset of the zone in minutes. | |
|
|
9
|
+
| **dst** | **Boolean** | Whether daylight saving time is currently in effect in the zone. | |
|
|
20
10
|
|
|
21
11
|
## Example
|
|
22
12
|
|
|
@@ -24,17 +14,7 @@
|
|
|
24
14
|
require 'timelogic-api'
|
|
25
15
|
|
|
26
16
|
instance = TimeLogic::Api::TimezoneMatch.new(
|
|
27
|
-
unix: null,
|
|
28
|
-
unix_ms: null,
|
|
29
|
-
utc: null,
|
|
30
|
-
iso_local: null,
|
|
31
|
-
rfc2822: null,
|
|
32
|
-
human: null,
|
|
33
|
-
day_number: null,
|
|
34
|
-
day_short: null,
|
|
35
|
-
day_full: null,
|
|
36
17
|
timezone: null,
|
|
37
|
-
formatted: null,
|
|
38
18
|
offset: null,
|
|
39
19
|
dst: null
|
|
40
20
|
)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# TimeLogic::Api::TimezoneResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **unix** | **Integer** | | |
|
|
8
|
+
| **unix_ms** | **Integer** | | |
|
|
9
|
+
| **utc** | **Time** | | |
|
|
10
|
+
| **iso_local** | **String** | | |
|
|
11
|
+
| **rfc2822** | **String** | | |
|
|
12
|
+
| **human** | **String** | | |
|
|
13
|
+
| **day_number** | **Integer** | Day of the week counted from Sunday (1 = Sunday, 2 = Monday ... 7 = Saturday). | |
|
|
14
|
+
| **day_short** | **String** | | |
|
|
15
|
+
| **day_full** | **String** | | |
|
|
16
|
+
| **timezone** | **String** | | |
|
|
17
|
+
| **formatted** | **String** | | [optional] |
|
|
18
|
+
| **offset** | **Integer** | UTC offset of the resolved target in minutes, for example `-240` for UTC-04:00. | |
|
|
19
|
+
| **dst** | **Boolean** | Whether daylight saving time is in effect for the resolved target. Always `false` for `offset` lookups. | |
|
|
20
|
+
| **offset_seconds** | **Integer** | Exact UTC offset in seconds. Present only when the resolved offset has a seconds part (historical local mean time); no zone has one at the current instant, so lookups today do not include it. | [optional] |
|
|
21
|
+
| **matching_zones** | [**Array<TimezoneMatch>**](TimezoneMatch.md) | Present only for `offset=` lookups. The geographic zones whose current offset equals the requested one. `UTC` and `Etc/*` zones are intentionally excluded; use `tz=UTC` for UTC. | [optional] |
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'timelogic-api'
|
|
27
|
+
|
|
28
|
+
instance = TimeLogic::Api::TimezoneResponse.new(
|
|
29
|
+
unix: null,
|
|
30
|
+
unix_ms: null,
|
|
31
|
+
utc: null,
|
|
32
|
+
iso_local: null,
|
|
33
|
+
rfc2822: null,
|
|
34
|
+
human: null,
|
|
35
|
+
day_number: null,
|
|
36
|
+
day_short: null,
|
|
37
|
+
day_full: null,
|
|
38
|
+
timezone: null,
|
|
39
|
+
formatted: null,
|
|
40
|
+
offset: null,
|
|
41
|
+
dst: null,
|
|
42
|
+
offset_seconds: null,
|
|
43
|
+
matching_zones: null
|
|
44
|
+
)
|
|
45
|
+
```
|
|
46
|
+
|