@apiverve/worldtime 1.2.3 → 1.2.4

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.
Files changed (3) hide show
  1. package/README.md +34 -24
  2. package/index.d.ts +25 -20
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # World Time API
2
2
 
3
- World Time looks up the current local time, date, and timezone for any city. Search by city name to get matching locations with country codes, IANA timezone identifiers, and formatted times in 12-hour and 24-hour formats.
3
+ World Time looks up the current local time, date, and timezone for any city, or for any latitude and longitude. Search by city name to get matching locations with country codes, IANA timezone identifiers, UTC offsets, and formatted times in 12-hour, 24-hour, and ISO 8601 formats.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@apiverve/worldtime.svg)](https://www.npmjs.com/package/@apiverve/worldtime)
6
6
 
@@ -129,18 +129,23 @@ async function makeRequest() {
129
129
  "iso3": "ARG",
130
130
  "province": "Córdoba",
131
131
  "timezone": "America/Argentina/Cordoba",
132
- "time": "19:33",
133
- "time24": "19:33:04",
134
- "time12": "07:33:04 PM",
135
- "date": "2025-12-16",
136
- "day": "Tuesday",
137
- "month": "December",
138
- "year": "2025",
139
- "unix": "1765924384",
132
+ "time": "17:51",
133
+ "time24": "17:51:13",
134
+ "time12": "05:51:13 PM",
135
+ "date": "2026-10-26",
136
+ "day": "Monday",
137
+ "month": "October",
138
+ "year": "2026",
139
+ "unix": "1793047873",
140
140
  "dst": false,
141
- "dst_start": "2025-12-16 19:33:04",
142
- "dst_end": "2025-12-16 19:33:04",
143
- "dst_name": "-03"
141
+ "dst_start": null,
142
+ "dst_end": null,
143
+ "dst_name": "-03",
144
+ "utc_offset": "-03:00",
145
+ "datetime": "2026-10-26T17:51:13-03:00",
146
+ "utc_datetime": "2026-10-26T20:51:13Z",
147
+ "day_of_year": 299,
148
+ "week_number": 44
144
149
  },
145
150
  {
146
151
  "city": "San Francisco",
@@ -151,18 +156,23 @@ async function makeRequest() {
151
156
  "province": "California",
152
157
  "state_ansi": "CA",
153
158
  "timezone": "America/Los_Angeles",
154
- "time": "14:33",
155
- "time24": "14:33:04",
156
- "time12": "02:33:04 PM",
157
- "date": "2025-12-16",
158
- "day": "Tuesday",
159
- "month": "December",
160
- "year": "2025",
161
- "unix": "1765924384",
162
- "dst": false,
163
- "dst_start": "2025-12-16 14:33:04",
164
- "dst_end": "2025-12-16 14:33:04",
165
- "dst_name": "PST"
159
+ "time": "13:51",
160
+ "time24": "13:51:13",
161
+ "time12": "01:51:13 PM",
162
+ "date": "2026-10-26",
163
+ "day": "Monday",
164
+ "month": "October",
165
+ "year": "2026",
166
+ "unix": "1793047873",
167
+ "dst": true,
168
+ "dst_start": "2026-03-08 03:00:00",
169
+ "dst_end": "2026-11-01 01:00:00",
170
+ "dst_name": "PDT",
171
+ "utc_offset": "-07:00",
172
+ "datetime": "2026-10-26T13:51:13-07:00",
173
+ "utc_datetime": "2026-10-26T20:51:13Z",
174
+ "day_of_year": 299,
175
+ "week_number": 44
166
176
  }
167
177
  ]
168
178
  }
package/index.d.ts CHANGED
@@ -30,26 +30,31 @@ declare module '@apiverve/worldtime' {
30
30
  }
31
31
 
32
32
  interface FoundCity {
33
- city: null | string;
34
- cityASCII: null | string;
35
- country: null | string;
36
- iso2: null | string;
37
- iso3: null | string;
38
- province: null | string;
39
- timezone: null | string;
40
- time: null | string;
41
- time24: null | string;
42
- time12: null | string;
43
- date: Date | null;
44
- day: null | string;
45
- month: null | string;
46
- year: null | string;
47
- unix: null | string;
48
- dst: boolean | null;
49
- dstStart: Date | null;
50
- dstEnd: Date | null;
51
- dstName: null | string;
52
- stateANSI?: null | string;
33
+ city: null | string;
34
+ cityASCII: null | string;
35
+ country: null | string;
36
+ iso2: null | string;
37
+ iso3: null | string;
38
+ province: null | string;
39
+ timezone: null | string;
40
+ time: null | string;
41
+ time24: null | string;
42
+ time12: null | string;
43
+ date: Date | null;
44
+ day: null | string;
45
+ month: null | string;
46
+ year: null | string;
47
+ unix: null | string;
48
+ dst: boolean | null;
49
+ dstStart: Date | null;
50
+ dstEnd: Date | null;
51
+ dstName: null | string;
52
+ utcOffset: null | string;
53
+ datetime: Date | null;
54
+ utcDatetime: Date | null;
55
+ dayOfYear: number | null;
56
+ weekNumber: number | null;
57
+ stateANSI?: null | string;
53
58
  }
54
59
 
55
60
  export default class worldtimeWrapper {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apiverve/worldtime",
3
- "version": "1.2.3",
4
- "description": "World Time looks up the current local time, date, and timezone for any city. Search by city name to get matching locations with country codes, IANA timezone identifiers, and formatted times in 12-hour and 24-hour formats.",
3
+ "version": "1.2.4",
4
+ "description": "World Time looks up the current local time, date, and timezone for any city, or for any latitude and longitude. Search by city name to get matching locations with country codes, IANA timezone identifiers, UTC offsets, and formatted times in 12-hour, 24-hour, and ISO 8601 formats.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "sideEffects": false,