clockey 1.0.3 → 1.2.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.
package/dist/index.d.mts CHANGED
@@ -4,6 +4,9 @@ interface TimeData {
4
4
  min: number;
5
5
  sec: number;
6
6
  period: "AM" | "PM" | string;
7
+ timeIso: string;
8
+ unixSeconds: number;
9
+ unixMilliseconds: number;
7
10
  timeAsString24: string;
8
11
  timeAsString12: string;
9
12
  }
@@ -102,6 +105,114 @@ declare function getCurrentPeriodResponse(): {
102
105
  period: string;
103
106
  };
104
107
  };
108
+ declare function getCurrentTimeUTC(): {
109
+ timeAsString12: string;
110
+ timeAsString24: string;
111
+ };
112
+ declare function getCurrentTimeUTCResponse(): ClockeyTimeResponse;
113
+ declare function getCurrentHrUTC(): {
114
+ hour24: number;
115
+ hour12: number;
116
+ hour24Str: string;
117
+ hour12Str: string;
118
+ };
119
+ declare function getCurrentHrUTCResponse(): {
120
+ success: boolean;
121
+ code: number;
122
+ msg: string;
123
+ hour: {
124
+ hour24: number;
125
+ hour12: number;
126
+ hour24Str: string;
127
+ hour12Str: string;
128
+ };
129
+ };
130
+ declare function getCurrentMinuteUTC(): {
131
+ minute: number;
132
+ minuteStr: string;
133
+ };
134
+ declare function getCurrentMinuteUTCResponse(): {
135
+ success: boolean;
136
+ code: number;
137
+ msg: string;
138
+ minute: {
139
+ minute: number;
140
+ minuteStr: string;
141
+ };
142
+ };
143
+ declare function getCurrentSecondUTC(): {
144
+ second: number;
145
+ secondStr: string;
146
+ };
147
+ declare function getCurrentSecondUTCResponse(): {
148
+ success: boolean;
149
+ code: number;
150
+ msg: string;
151
+ second: {
152
+ second: number;
153
+ secondStr: string;
154
+ };
155
+ };
156
+ declare function getCurrentHour24StrUTC(): string;
157
+ declare function getCurrentHour24StrUTCResponse(): {
158
+ success: boolean;
159
+ code: number;
160
+ msg: string;
161
+ value: string;
162
+ };
163
+ declare function getCurrentHour12StrUTC(): string;
164
+ declare function getCurrentHour12StrUTCResponse(): {
165
+ success: boolean;
166
+ code: number;
167
+ msg: string;
168
+ value: string;
169
+ };
170
+ declare function getCurrentMinuteStrUTC(): string;
171
+ declare function getCurrentMinuteStrUTCResponse(): {
172
+ success: boolean;
173
+ code: number;
174
+ msg: string;
175
+ value: string;
176
+ };
177
+ declare function getCurrentSecondStrUTC(): string;
178
+ declare function getCurrentSecondStrUTCResponse(): {
179
+ success: boolean;
180
+ code: number;
181
+ msg: string;
182
+ value: string;
183
+ };
184
+ declare function getCurrentPeriodUTC(): {
185
+ period: string;
186
+ };
187
+ declare function getCurrentPeriodUTCResponse(): {
188
+ success: boolean;
189
+ code: number;
190
+ msg: string;
191
+ period: {
192
+ period: string;
193
+ };
194
+ };
195
+ declare function getcurrentTimeISO(): string;
196
+ declare function getcurrentTimeISOResponse(): {
197
+ success: boolean;
198
+ code: number;
199
+ msg: string;
200
+ value: string;
201
+ };
202
+ declare function getCurrentTimeUnixSeconds(): number;
203
+ declare function getCurrentTimeUnixSecondsResponse(): {
204
+ success: boolean;
205
+ code: number;
206
+ msg: string;
207
+ value: number;
208
+ };
209
+ declare function getCurrentTimeUnixMilliseconds(): number;
210
+ declare function getCurrentTimeUnixMillisecondsResponse(): {
211
+ success: boolean;
212
+ code: number;
213
+ msg: string;
214
+ value: number;
215
+ };
105
216
 
106
217
  interface DateData {
107
218
  yr: number;
@@ -110,6 +221,9 @@ interface DateData {
110
221
  date: number;
111
222
  ordinal: string;
112
223
  fullDate: string;
224
+ dateIso: string;
225
+ unixSeconds: number;
226
+ unixMilliseconds: number;
113
227
  }
114
228
 
115
229
  interface ClockeyDateResponse {
@@ -190,5 +304,108 @@ declare function getCurrentFullDateResponse(): {
190
304
  fullDate: string;
191
305
  };
192
306
  };
307
+ declare function getCurrentDateUTC(): ClockeyDateResponse;
308
+ declare function getCurrentYearUTC(): number;
309
+ declare function getCurrentYearUTCResponse(): {
310
+ success: boolean;
311
+ code: number;
312
+ msg: string;
313
+ value: number;
314
+ };
315
+ declare function getCurrentMonthUTC(): {
316
+ monthNumber: number;
317
+ monthName: string;
318
+ monthStr: string;
319
+ };
320
+ declare function getCurrentMonthUTCResponse(): {
321
+ success: boolean;
322
+ code: number;
323
+ msg: string;
324
+ value: {
325
+ monthNumber: number;
326
+ monthName: string;
327
+ monthStr: string;
328
+ };
329
+ };
330
+ declare function getCurrentDayUTC(): {
331
+ dayIndex: number;
332
+ dayName: string;
333
+ };
334
+ declare function getCurrentDayUTCResponse(): {
335
+ success: boolean;
336
+ code: number;
337
+ msg: string;
338
+ value: {
339
+ dayIndex: number;
340
+ dayName: string;
341
+ };
342
+ };
343
+ declare function getCurrentDateNumberUTC(): {
344
+ date: number;
345
+ dateStr: string;
346
+ };
347
+ declare function getCurrentDateNumberUTCResponse(): {
348
+ success: boolean;
349
+ code: number;
350
+ msg: string;
351
+ value: {
352
+ date: number;
353
+ dateStr: string;
354
+ };
355
+ };
356
+ declare function getCurrentOrdinalUTC(): {
357
+ ordinal: string;
358
+ };
359
+ declare function getCurrentOrdinalUTCResponse(): {
360
+ success: boolean;
361
+ code: number;
362
+ msg: string;
363
+ value: {
364
+ ordinal: string;
365
+ };
366
+ };
367
+ declare function getCurrentFullDateUTC(): {
368
+ fullDate: string;
369
+ };
370
+ declare function getCurrentFullDateUTCResponse(): {
371
+ success: boolean;
372
+ code: number;
373
+ msg: string;
374
+ value: {
375
+ fullDate: string;
376
+ };
377
+ };
378
+ declare function getcurrentDateISO(): string;
379
+ declare function getcurrentDateISOResponse(): {
380
+ success: boolean;
381
+ code: number;
382
+ msg: string;
383
+ value: string;
384
+ };
385
+ declare function getCurrentDateUnixSeconds(): number;
386
+ declare function getCurrentDateUnixSecondsResponse(): {
387
+ success: boolean;
388
+ code: number;
389
+ msg: string;
390
+ value: number;
391
+ };
392
+ declare function getCurrentDateUnixMilliseconds(): number;
393
+ declare function getCurrentDateUnixMillisecondsResponse(): {
394
+ success: boolean;
395
+ code: number;
396
+ msg: string;
397
+ value: number;
398
+ };
399
+
400
+ declare function createTimer(): {
401
+ start: () => void;
402
+ end: () => {
403
+ elapsedMs: number;
404
+ elapsedSec: number;
405
+ elapsedMin: number;
406
+ elapsedHrs: number;
407
+ text: string;
408
+ } | null;
409
+ };
193
410
 
194
- export { getCurrenHrResponse, getCurrentDate, getCurrentDateNumber, getCurrentDateNumberResponse, getCurrentDay, getCurrentDayResponse, getCurrentFullDate, getCurrentFullDateResponse, getCurrentHour12Str, getCurrentHour12StrResponse, getCurrentHour24Str, getCurrentHour24StrResponse, getCurrentHr, getCurrentMinute, getCurrentMinuteResponse, getCurrentMinuteStr, getCurrentMinuteStrResponse, getCurrentMonth, getCurrentMonthResponse, getCurrentOrdinal, getCurrentOrdinalResponse, getCurrentPeriod, getCurrentPeriodResponse, getCurrentSecond, getCurrentSecondResponse, getCurrentSecondStr, getCurrentSecondStrResponse, getCurrentTime, getCurrentTimeResponse, getCurrentYear, getCurrentYearResponse };
411
+ export { createTimer, getCurrenHrResponse, getCurrentDate, getCurrentDateNumber, getCurrentDateNumberResponse, getCurrentDateNumberUTC, getCurrentDateNumberUTCResponse, getCurrentDateUTC, getCurrentDateUnixMilliseconds, getCurrentDateUnixMillisecondsResponse, getCurrentDateUnixSeconds, getCurrentDateUnixSecondsResponse, getCurrentDay, getCurrentDayResponse, getCurrentDayUTC, getCurrentDayUTCResponse, getCurrentFullDate, getCurrentFullDateResponse, getCurrentFullDateUTC, getCurrentFullDateUTCResponse, getCurrentHour12Str, getCurrentHour12StrResponse, getCurrentHour12StrUTC, getCurrentHour12StrUTCResponse, getCurrentHour24Str, getCurrentHour24StrResponse, getCurrentHour24StrUTC, getCurrentHour24StrUTCResponse, getCurrentHr, getCurrentHrUTC, getCurrentHrUTCResponse, getCurrentMinute, getCurrentMinuteResponse, getCurrentMinuteStr, getCurrentMinuteStrResponse, getCurrentMinuteStrUTC, getCurrentMinuteStrUTCResponse, getCurrentMinuteUTC, getCurrentMinuteUTCResponse, getCurrentMonth, getCurrentMonthResponse, getCurrentMonthUTC, getCurrentMonthUTCResponse, getCurrentOrdinal, getCurrentOrdinalResponse, getCurrentOrdinalUTC, getCurrentOrdinalUTCResponse, getCurrentPeriod, getCurrentPeriodResponse, getCurrentPeriodUTC, getCurrentPeriodUTCResponse, getCurrentSecond, getCurrentSecondResponse, getCurrentSecondStr, getCurrentSecondStrResponse, getCurrentSecondStrUTC, getCurrentSecondStrUTCResponse, getCurrentSecondUTC, getCurrentSecondUTCResponse, getCurrentTime, getCurrentTimeResponse, getCurrentTimeUTC, getCurrentTimeUTCResponse, getCurrentTimeUnixMilliseconds, getCurrentTimeUnixMillisecondsResponse, getCurrentTimeUnixSeconds, getCurrentTimeUnixSecondsResponse, getCurrentYear, getCurrentYearResponse, getCurrentYearUTC, getCurrentYearUTCResponse, getcurrentDateISO, getcurrentDateISOResponse, getcurrentTimeISO, getcurrentTimeISOResponse };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,9 @@ interface TimeData {
4
4
  min: number;
5
5
  sec: number;
6
6
  period: "AM" | "PM" | string;
7
+ timeIso: string;
8
+ unixSeconds: number;
9
+ unixMilliseconds: number;
7
10
  timeAsString24: string;
8
11
  timeAsString12: string;
9
12
  }
@@ -102,6 +105,114 @@ declare function getCurrentPeriodResponse(): {
102
105
  period: string;
103
106
  };
104
107
  };
108
+ declare function getCurrentTimeUTC(): {
109
+ timeAsString12: string;
110
+ timeAsString24: string;
111
+ };
112
+ declare function getCurrentTimeUTCResponse(): ClockeyTimeResponse;
113
+ declare function getCurrentHrUTC(): {
114
+ hour24: number;
115
+ hour12: number;
116
+ hour24Str: string;
117
+ hour12Str: string;
118
+ };
119
+ declare function getCurrentHrUTCResponse(): {
120
+ success: boolean;
121
+ code: number;
122
+ msg: string;
123
+ hour: {
124
+ hour24: number;
125
+ hour12: number;
126
+ hour24Str: string;
127
+ hour12Str: string;
128
+ };
129
+ };
130
+ declare function getCurrentMinuteUTC(): {
131
+ minute: number;
132
+ minuteStr: string;
133
+ };
134
+ declare function getCurrentMinuteUTCResponse(): {
135
+ success: boolean;
136
+ code: number;
137
+ msg: string;
138
+ minute: {
139
+ minute: number;
140
+ minuteStr: string;
141
+ };
142
+ };
143
+ declare function getCurrentSecondUTC(): {
144
+ second: number;
145
+ secondStr: string;
146
+ };
147
+ declare function getCurrentSecondUTCResponse(): {
148
+ success: boolean;
149
+ code: number;
150
+ msg: string;
151
+ second: {
152
+ second: number;
153
+ secondStr: string;
154
+ };
155
+ };
156
+ declare function getCurrentHour24StrUTC(): string;
157
+ declare function getCurrentHour24StrUTCResponse(): {
158
+ success: boolean;
159
+ code: number;
160
+ msg: string;
161
+ value: string;
162
+ };
163
+ declare function getCurrentHour12StrUTC(): string;
164
+ declare function getCurrentHour12StrUTCResponse(): {
165
+ success: boolean;
166
+ code: number;
167
+ msg: string;
168
+ value: string;
169
+ };
170
+ declare function getCurrentMinuteStrUTC(): string;
171
+ declare function getCurrentMinuteStrUTCResponse(): {
172
+ success: boolean;
173
+ code: number;
174
+ msg: string;
175
+ value: string;
176
+ };
177
+ declare function getCurrentSecondStrUTC(): string;
178
+ declare function getCurrentSecondStrUTCResponse(): {
179
+ success: boolean;
180
+ code: number;
181
+ msg: string;
182
+ value: string;
183
+ };
184
+ declare function getCurrentPeriodUTC(): {
185
+ period: string;
186
+ };
187
+ declare function getCurrentPeriodUTCResponse(): {
188
+ success: boolean;
189
+ code: number;
190
+ msg: string;
191
+ period: {
192
+ period: string;
193
+ };
194
+ };
195
+ declare function getcurrentTimeISO(): string;
196
+ declare function getcurrentTimeISOResponse(): {
197
+ success: boolean;
198
+ code: number;
199
+ msg: string;
200
+ value: string;
201
+ };
202
+ declare function getCurrentTimeUnixSeconds(): number;
203
+ declare function getCurrentTimeUnixSecondsResponse(): {
204
+ success: boolean;
205
+ code: number;
206
+ msg: string;
207
+ value: number;
208
+ };
209
+ declare function getCurrentTimeUnixMilliseconds(): number;
210
+ declare function getCurrentTimeUnixMillisecondsResponse(): {
211
+ success: boolean;
212
+ code: number;
213
+ msg: string;
214
+ value: number;
215
+ };
105
216
 
106
217
  interface DateData {
107
218
  yr: number;
@@ -110,6 +221,9 @@ interface DateData {
110
221
  date: number;
111
222
  ordinal: string;
112
223
  fullDate: string;
224
+ dateIso: string;
225
+ unixSeconds: number;
226
+ unixMilliseconds: number;
113
227
  }
114
228
 
115
229
  interface ClockeyDateResponse {
@@ -190,5 +304,108 @@ declare function getCurrentFullDateResponse(): {
190
304
  fullDate: string;
191
305
  };
192
306
  };
307
+ declare function getCurrentDateUTC(): ClockeyDateResponse;
308
+ declare function getCurrentYearUTC(): number;
309
+ declare function getCurrentYearUTCResponse(): {
310
+ success: boolean;
311
+ code: number;
312
+ msg: string;
313
+ value: number;
314
+ };
315
+ declare function getCurrentMonthUTC(): {
316
+ monthNumber: number;
317
+ monthName: string;
318
+ monthStr: string;
319
+ };
320
+ declare function getCurrentMonthUTCResponse(): {
321
+ success: boolean;
322
+ code: number;
323
+ msg: string;
324
+ value: {
325
+ monthNumber: number;
326
+ monthName: string;
327
+ monthStr: string;
328
+ };
329
+ };
330
+ declare function getCurrentDayUTC(): {
331
+ dayIndex: number;
332
+ dayName: string;
333
+ };
334
+ declare function getCurrentDayUTCResponse(): {
335
+ success: boolean;
336
+ code: number;
337
+ msg: string;
338
+ value: {
339
+ dayIndex: number;
340
+ dayName: string;
341
+ };
342
+ };
343
+ declare function getCurrentDateNumberUTC(): {
344
+ date: number;
345
+ dateStr: string;
346
+ };
347
+ declare function getCurrentDateNumberUTCResponse(): {
348
+ success: boolean;
349
+ code: number;
350
+ msg: string;
351
+ value: {
352
+ date: number;
353
+ dateStr: string;
354
+ };
355
+ };
356
+ declare function getCurrentOrdinalUTC(): {
357
+ ordinal: string;
358
+ };
359
+ declare function getCurrentOrdinalUTCResponse(): {
360
+ success: boolean;
361
+ code: number;
362
+ msg: string;
363
+ value: {
364
+ ordinal: string;
365
+ };
366
+ };
367
+ declare function getCurrentFullDateUTC(): {
368
+ fullDate: string;
369
+ };
370
+ declare function getCurrentFullDateUTCResponse(): {
371
+ success: boolean;
372
+ code: number;
373
+ msg: string;
374
+ value: {
375
+ fullDate: string;
376
+ };
377
+ };
378
+ declare function getcurrentDateISO(): string;
379
+ declare function getcurrentDateISOResponse(): {
380
+ success: boolean;
381
+ code: number;
382
+ msg: string;
383
+ value: string;
384
+ };
385
+ declare function getCurrentDateUnixSeconds(): number;
386
+ declare function getCurrentDateUnixSecondsResponse(): {
387
+ success: boolean;
388
+ code: number;
389
+ msg: string;
390
+ value: number;
391
+ };
392
+ declare function getCurrentDateUnixMilliseconds(): number;
393
+ declare function getCurrentDateUnixMillisecondsResponse(): {
394
+ success: boolean;
395
+ code: number;
396
+ msg: string;
397
+ value: number;
398
+ };
399
+
400
+ declare function createTimer(): {
401
+ start: () => void;
402
+ end: () => {
403
+ elapsedMs: number;
404
+ elapsedSec: number;
405
+ elapsedMin: number;
406
+ elapsedHrs: number;
407
+ text: string;
408
+ } | null;
409
+ };
193
410
 
194
- export { getCurrenHrResponse, getCurrentDate, getCurrentDateNumber, getCurrentDateNumberResponse, getCurrentDay, getCurrentDayResponse, getCurrentFullDate, getCurrentFullDateResponse, getCurrentHour12Str, getCurrentHour12StrResponse, getCurrentHour24Str, getCurrentHour24StrResponse, getCurrentHr, getCurrentMinute, getCurrentMinuteResponse, getCurrentMinuteStr, getCurrentMinuteStrResponse, getCurrentMonth, getCurrentMonthResponse, getCurrentOrdinal, getCurrentOrdinalResponse, getCurrentPeriod, getCurrentPeriodResponse, getCurrentSecond, getCurrentSecondResponse, getCurrentSecondStr, getCurrentSecondStrResponse, getCurrentTime, getCurrentTimeResponse, getCurrentYear, getCurrentYearResponse };
411
+ export { createTimer, getCurrenHrResponse, getCurrentDate, getCurrentDateNumber, getCurrentDateNumberResponse, getCurrentDateNumberUTC, getCurrentDateNumberUTCResponse, getCurrentDateUTC, getCurrentDateUnixMilliseconds, getCurrentDateUnixMillisecondsResponse, getCurrentDateUnixSeconds, getCurrentDateUnixSecondsResponse, getCurrentDay, getCurrentDayResponse, getCurrentDayUTC, getCurrentDayUTCResponse, getCurrentFullDate, getCurrentFullDateResponse, getCurrentFullDateUTC, getCurrentFullDateUTCResponse, getCurrentHour12Str, getCurrentHour12StrResponse, getCurrentHour12StrUTC, getCurrentHour12StrUTCResponse, getCurrentHour24Str, getCurrentHour24StrResponse, getCurrentHour24StrUTC, getCurrentHour24StrUTCResponse, getCurrentHr, getCurrentHrUTC, getCurrentHrUTCResponse, getCurrentMinute, getCurrentMinuteResponse, getCurrentMinuteStr, getCurrentMinuteStrResponse, getCurrentMinuteStrUTC, getCurrentMinuteStrUTCResponse, getCurrentMinuteUTC, getCurrentMinuteUTCResponse, getCurrentMonth, getCurrentMonthResponse, getCurrentMonthUTC, getCurrentMonthUTCResponse, getCurrentOrdinal, getCurrentOrdinalResponse, getCurrentOrdinalUTC, getCurrentOrdinalUTCResponse, getCurrentPeriod, getCurrentPeriodResponse, getCurrentPeriodUTC, getCurrentPeriodUTCResponse, getCurrentSecond, getCurrentSecondResponse, getCurrentSecondStr, getCurrentSecondStrResponse, getCurrentSecondStrUTC, getCurrentSecondStrUTCResponse, getCurrentSecondUTC, getCurrentSecondUTCResponse, getCurrentTime, getCurrentTimeResponse, getCurrentTimeUTC, getCurrentTimeUTCResponse, getCurrentTimeUnixMilliseconds, getCurrentTimeUnixMillisecondsResponse, getCurrentTimeUnixSeconds, getCurrentTimeUnixSecondsResponse, getCurrentYear, getCurrentYearResponse, getCurrentYearUTC, getCurrentYearUTCResponse, getcurrentDateISO, getcurrentDateISOResponse, getcurrentTimeISO, getcurrentTimeISOResponse };