@dereekb/dbx-components-mcp 13.11.3 → 13.11.5

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.
@@ -3024,6 +3024,1073 @@
3024
3024
  "random-number-factory"
3025
3025
  ]
3026
3026
  },
3027
+ {
3028
+ "slug": "iso-8601-date-string-regex",
3029
+ "name": "ISO_8601_DATE_STRING_REGEX",
3030
+ "kind": "const",
3031
+ "category": "date",
3032
+ "module": "@dereekb/util",
3033
+ "subpath": "date/date",
3034
+ "signature": "const ISO_8601_DATE_STRING_REGEX: RegExp",
3035
+ "description": "Regular expression for validating ISO8601 date strings.\n\nTODO(FUTURE): Need to improve to support negative years.",
3036
+ "params": [],
3037
+ "returns": "RegExp",
3038
+ "tags": [
3039
+ "date",
3040
+ "iso8601",
3041
+ "regex",
3042
+ "string",
3043
+ "validate",
3044
+ "iso",
3045
+ "8601",
3046
+ "iso_8601_date_string_regex"
3047
+ ],
3048
+ "relatedSlugs": [
3049
+ "is-iso8601-date-string",
3050
+ "iso8601-day-string-regex"
3051
+ ]
3052
+ },
3053
+ {
3054
+ "slug": "is-iso8601-date-string",
3055
+ "name": "isISO8601DateString",
3056
+ "kind": "function",
3057
+ "category": "date",
3058
+ "module": "@dereekb/util",
3059
+ "subpath": "date/date",
3060
+ "signature": "isISO8601DateString(input: string): input is ISO8601DateString",
3061
+ "description": "Determines if a string is a valid ISO8601 date string.",
3062
+ "params": [
3063
+ {
3064
+ "name": "input",
3065
+ "type": "string",
3066
+ "description": "- The string to test",
3067
+ "optional": false
3068
+ }
3069
+ ],
3070
+ "returns": "True if the input is a valid ISO8601 date string",
3071
+ "tags": [
3072
+ "date",
3073
+ "iso8601",
3074
+ "string",
3075
+ "predicate",
3076
+ "validate",
3077
+ "is",
3078
+ "isiso8601datestring"
3079
+ ],
3080
+ "relatedSlugs": [
3081
+ "is-iso8601-day-string",
3082
+ "is-utc-date-string",
3083
+ "iso-8601-date-string-regex"
3084
+ ]
3085
+ },
3086
+ {
3087
+ "slug": "utc-date-string-regex",
3088
+ "name": "UTC_DATE_STRING_REGEX",
3089
+ "kind": "const",
3090
+ "category": "date",
3091
+ "module": "@dereekb/util",
3092
+ "subpath": "date/date",
3093
+ "signature": "const UTC_DATE_STRING_REGEX: RegExp",
3094
+ "description": "Match examples:\n\nSat, 03 Feb 2001 04:05:06 GMT\nTue, 14 Mar 2023 12:34:56 UTC\nWed, 25 May 2024 20:45:07 EST",
3095
+ "params": [],
3096
+ "returns": "RegExp",
3097
+ "tags": [
3098
+ "date",
3099
+ "utc",
3100
+ "regex",
3101
+ "string",
3102
+ "validate",
3103
+ "utc_date_string_regex"
3104
+ ],
3105
+ "relatedSlugs": [
3106
+ "is-utc-date-string"
3107
+ ]
3108
+ },
3109
+ {
3110
+ "slug": "is-utc-date-string",
3111
+ "name": "isUTCDateString",
3112
+ "kind": "function",
3113
+ "category": "date",
3114
+ "module": "@dereekb/util",
3115
+ "subpath": "date/date",
3116
+ "signature": "isUTCDateString(input: string): boolean",
3117
+ "description": "Determines if a string is a valid UTC date string.",
3118
+ "params": [
3119
+ {
3120
+ "name": "input",
3121
+ "type": "string",
3122
+ "description": "- The string to test",
3123
+ "optional": false
3124
+ }
3125
+ ],
3126
+ "returns": "True if the input is a valid UTC date string",
3127
+ "tags": [
3128
+ "date",
3129
+ "utc",
3130
+ "string",
3131
+ "predicate",
3132
+ "validate",
3133
+ "is",
3134
+ "isutcdatestring"
3135
+ ],
3136
+ "relatedSlugs": [
3137
+ "is-iso8601-date-string",
3138
+ "utc-date-string-regex"
3139
+ ]
3140
+ },
3141
+ {
3142
+ "slug": "has-same-timezone",
3143
+ "name": "hasSameTimezone",
3144
+ "kind": "function",
3145
+ "category": "date",
3146
+ "module": "@dereekb/util",
3147
+ "subpath": "date/date",
3148
+ "signature": "hasSameTimezone(a: Maybe<Partial<TimezoneStringRef>>, b: Maybe<Partial<TimezoneStringRef>>): boolean",
3149
+ "description": "Returns true only if the inputs have the same timezone, or both do not have a timezone set.",
3150
+ "params": [
3151
+ {
3152
+ "name": "a",
3153
+ "type": "Maybe<Partial<TimezoneStringRef>>",
3154
+ "description": "- First object that may contain a timezone reference",
3155
+ "optional": false
3156
+ },
3157
+ {
3158
+ "name": "b",
3159
+ "type": "Maybe<Partial<TimezoneStringRef>>",
3160
+ "description": "- Second object that may contain a timezone reference",
3161
+ "optional": false
3162
+ }
3163
+ ],
3164
+ "returns": "True if both objects have the same timezone or neither has a timezone set",
3165
+ "tags": [
3166
+ "date",
3167
+ "timezone",
3168
+ "compare",
3169
+ "equal",
3170
+ "predicate",
3171
+ "has",
3172
+ "same",
3173
+ "hassametimezone"
3174
+ ],
3175
+ "relatedSlugs": [
3176
+ "is-considered-utc-timezone-string"
3177
+ ]
3178
+ },
3179
+ {
3180
+ "slug": "utc-timezone-string",
3181
+ "name": "UTC_TIMEZONE_STRING",
3182
+ "kind": "const",
3183
+ "category": "date",
3184
+ "module": "@dereekb/util",
3185
+ "subpath": "date/date",
3186
+ "signature": "const UTC_TIMEZONE_STRING: \"UTC\"",
3187
+ "description": "Constant for the UTC timezone string, \"UTC\".",
3188
+ "params": [],
3189
+ "returns": "\"UTC\"",
3190
+ "tags": [
3191
+ "date",
3192
+ "timezone",
3193
+ "utc",
3194
+ "string",
3195
+ "constant",
3196
+ "utc_timezone_string"
3197
+ ],
3198
+ "relatedSlugs": [
3199
+ "is-considered-utc-timezone-string"
3200
+ ]
3201
+ },
3202
+ {
3203
+ "slug": "is-considered-utc-timezone-string",
3204
+ "name": "isConsideredUtcTimezoneString",
3205
+ "kind": "function",
3206
+ "category": "date",
3207
+ "module": "@dereekb/util",
3208
+ "subpath": "date/date",
3209
+ "signature": "isConsideredUtcTimezoneString(timezone: Maybe<TimezoneString>): boolean",
3210
+ "description": "Determines whether the input timezone string is considered UTC.\nReturns true for null, undefined, or the string 'UTC'.",
3211
+ "params": [
3212
+ {
3213
+ "name": "timezone",
3214
+ "type": "Maybe<TimezoneString>",
3215
+ "description": "- The timezone string to check",
3216
+ "optional": false
3217
+ }
3218
+ ],
3219
+ "returns": "True if the timezone is considered UTC",
3220
+ "tags": [
3221
+ "date",
3222
+ "timezone",
3223
+ "utc",
3224
+ "predicate",
3225
+ "is",
3226
+ "considered",
3227
+ "string",
3228
+ "isconsideredutctimezonestring"
3229
+ ],
3230
+ "relatedSlugs": [
3231
+ "has-same-timezone",
3232
+ "utc-timezone-string"
3233
+ ]
3234
+ },
3235
+ {
3236
+ "slug": "iso8601-day-string-regex",
3237
+ "name": "ISO8601_DAY_STRING_REGEX",
3238
+ "kind": "const",
3239
+ "category": "date",
3240
+ "module": "@dereekb/util",
3241
+ "subpath": "date/date",
3242
+ "signature": "const ISO8601_DAY_STRING_REGEX: RegExp",
3243
+ "description": "Regex for an ISO8601DayString.",
3244
+ "params": [],
3245
+ "returns": "RegExp",
3246
+ "tags": [
3247
+ "date",
3248
+ "iso8601",
3249
+ "day",
3250
+ "regex",
3251
+ "string",
3252
+ "validate",
3253
+ "iso8601_day_string_regex"
3254
+ ],
3255
+ "relatedSlugs": [
3256
+ "is-iso8601-day-string",
3257
+ "iso8601-day-string-start-regex"
3258
+ ]
3259
+ },
3260
+ {
3261
+ "slug": "iso8601-day-string-start-regex",
3262
+ "name": "ISO8601_DAY_STRING_START_REGEX",
3263
+ "kind": "const",
3264
+ "category": "date",
3265
+ "module": "@dereekb/util",
3266
+ "subpath": "date/date",
3267
+ "signature": "const ISO8601_DAY_STRING_START_REGEX: RegExp",
3268
+ "description": "Regex for a string that starts as an ISO8601DayString.",
3269
+ "params": [],
3270
+ "returns": "RegExp",
3271
+ "tags": [
3272
+ "date",
3273
+ "iso8601",
3274
+ "day",
3275
+ "regex",
3276
+ "prefix",
3277
+ "string",
3278
+ "start",
3279
+ "iso8601_day_string_start_regex"
3280
+ ],
3281
+ "relatedSlugs": [
3282
+ "is-iso8601-day-string-start",
3283
+ "iso8601-day-string-regex"
3284
+ ]
3285
+ },
3286
+ {
3287
+ "slug": "start-of-day-for-utc-date-in-utc",
3288
+ "name": "startOfDayForUTCDateInUTC",
3289
+ "kind": "function",
3290
+ "category": "date",
3291
+ "module": "@dereekb/util",
3292
+ "subpath": "date/date",
3293
+ "signature": "startOfDayForUTCDateInUTC(date: Date): Date",
3294
+ "description": "Returns the start of the input date's UTC time in UTC.\n\nI.E. 2022-01-02T04:00:00.000Z in GMT-6 returns 2022-01-02",
3295
+ "params": [
3296
+ {
3297
+ "name": "date",
3298
+ "type": "Date",
3299
+ "description": "- The date to get the start of day for",
3300
+ "optional": false
3301
+ }
3302
+ ],
3303
+ "returns": "A new Date set to midnight UTC of the input date's UTC day",
3304
+ "tags": [
3305
+ "date",
3306
+ "utc",
3307
+ "start-of-day",
3308
+ "day",
3309
+ "normalize",
3310
+ "start",
3311
+ "of",
3312
+ "for",
3313
+ "in",
3314
+ "startofdayforutcdateinutc"
3315
+ ],
3316
+ "relatedSlugs": [
3317
+ "start-of-day-for-system-date-in-utc",
3318
+ "parse-iso8601-day-string-to-utc-date"
3319
+ ]
3320
+ },
3321
+ {
3322
+ "slug": "start-of-day-for-system-date-in-utc",
3323
+ "name": "startOfDayForSystemDateInUTC",
3324
+ "kind": "function",
3325
+ "category": "date",
3326
+ "module": "@dereekb/util",
3327
+ "subpath": "date/date",
3328
+ "signature": "startOfDayForSystemDateInUTC(date: Date): Date",
3329
+ "description": "Returns the start of the system's local date in UTC.\n\nI.E. 2022-01-02T04:00:00.000Z in GMT-6 (10PM Jan 1st CST) returns 2022-01-01",
3330
+ "params": [
3331
+ {
3332
+ "name": "date",
3333
+ "type": "Date",
3334
+ "description": "- The date to get the start of local day for",
3335
+ "optional": false
3336
+ }
3337
+ ],
3338
+ "returns": "A new Date set to midnight UTC of the input date's local day",
3339
+ "tags": [
3340
+ "date",
3341
+ "utc",
3342
+ "start-of-day",
3343
+ "system",
3344
+ "local",
3345
+ "start",
3346
+ "of",
3347
+ "day",
3348
+ "for",
3349
+ "in",
3350
+ "startofdayforsystemdateinutc"
3351
+ ],
3352
+ "relatedSlugs": [
3353
+ "start-of-day-for-utc-date-in-utc"
3354
+ ]
3355
+ },
3356
+ {
3357
+ "slug": "parse-iso8601-day-string-to-utc-date",
3358
+ "name": "parseISO8601DayStringToUTCDate",
3359
+ "kind": "function",
3360
+ "category": "date",
3361
+ "module": "@dereekb/util",
3362
+ "subpath": "date/date",
3363
+ "signature": "parseISO8601DayStringToUTCDate(inputDateString: ISO8601DayString): Date",
3364
+ "description": "Parses an ISO8601DayString (YYYY-MM-DD) to a UTC Date at midnight.",
3365
+ "params": [
3366
+ {
3367
+ "name": "inputDateString",
3368
+ "type": "ISO8601DayString",
3369
+ "description": "- The ISO8601 day string to parse (e.g., '2022-01-15')",
3370
+ "optional": false
3371
+ }
3372
+ ],
3373
+ "returns": "A Date object set to midnight UTC on the specified day",
3374
+ "tags": [
3375
+ "date",
3376
+ "iso8601",
3377
+ "day",
3378
+ "parse",
3379
+ "utc",
3380
+ "convert",
3381
+ "string",
3382
+ "to",
3383
+ "parseiso8601daystringtoutcdate"
3384
+ ],
3385
+ "relatedSlugs": [
3386
+ "is-iso8601-day-string",
3387
+ "start-of-day-for-utc-date-in-utc"
3388
+ ]
3389
+ },
3390
+ {
3391
+ "slug": "is-iso8601-day-string",
3392
+ "name": "isISO8601DayString",
3393
+ "kind": "function",
3394
+ "category": "date",
3395
+ "module": "@dereekb/util",
3396
+ "subpath": "date/date",
3397
+ "signature": "isISO8601DayString(input: string): input is ISO8601DayString",
3398
+ "description": "Determines if a string is a valid ISO8601 day string (YYYY-MM-DD format).",
3399
+ "params": [
3400
+ {
3401
+ "name": "input",
3402
+ "type": "string",
3403
+ "description": "- The string to test",
3404
+ "optional": false
3405
+ }
3406
+ ],
3407
+ "returns": "True if the input is a valid ISO8601 day string",
3408
+ "tags": [
3409
+ "date",
3410
+ "iso8601",
3411
+ "day",
3412
+ "string",
3413
+ "predicate",
3414
+ "validate",
3415
+ "is",
3416
+ "isiso8601daystring"
3417
+ ],
3418
+ "relatedSlugs": [
3419
+ "is-iso8601-day-string-start",
3420
+ "parse-iso8601-day-string-to-utc-date",
3421
+ "iso8601-day-string-regex"
3422
+ ]
3423
+ },
3424
+ {
3425
+ "slug": "is-iso8601-day-string-start",
3426
+ "name": "isISO8601DayStringStart",
3427
+ "kind": "function",
3428
+ "category": "date",
3429
+ "module": "@dereekb/util",
3430
+ "subpath": "date/date",
3431
+ "signature": "isISO8601DayStringStart(input: string): input is ISO8601DayString",
3432
+ "description": "Determines if a string starts with a valid ISO8601 day string pattern (YYYY-MM-DD).",
3433
+ "params": [
3434
+ {
3435
+ "name": "input",
3436
+ "type": "string",
3437
+ "description": "- The string to test",
3438
+ "optional": false
3439
+ }
3440
+ ],
3441
+ "returns": "True if the input starts with a valid ISO8601 day string pattern",
3442
+ "tags": [
3443
+ "date",
3444
+ "iso8601",
3445
+ "day",
3446
+ "string",
3447
+ "predicate",
3448
+ "prefix",
3449
+ "is",
3450
+ "start",
3451
+ "isiso8601daystringstart"
3452
+ ],
3453
+ "relatedSlugs": [
3454
+ "is-iso8601-day-string",
3455
+ "iso8601-day-string-start-regex"
3456
+ ]
3457
+ },
3458
+ {
3459
+ "slug": "month-day-slash-date-string-regex",
3460
+ "name": "MONTH_DAY_SLASH_DATE_STRING_REGEX",
3461
+ "kind": "const",
3462
+ "category": "date",
3463
+ "module": "@dereekb/util",
3464
+ "subpath": "date/date",
3465
+ "signature": "const MONTH_DAY_SLASH_DATE_STRING_REGEX: RegExp",
3466
+ "description": "Regex for a MonthDaySlashDate.",
3467
+ "params": [],
3468
+ "returns": "RegExp",
3469
+ "tags": [
3470
+ "date",
3471
+ "slash",
3472
+ "month",
3473
+ "day",
3474
+ "regex",
3475
+ "string",
3476
+ "validate",
3477
+ "month_day_slash_date_string_regex"
3478
+ ],
3479
+ "relatedSlugs": [
3480
+ "is-month-day-slash-date"
3481
+ ]
3482
+ },
3483
+ {
3484
+ "slug": "is-month-day-slash-date",
3485
+ "name": "isMonthDaySlashDate",
3486
+ "kind": "function",
3487
+ "category": "date",
3488
+ "module": "@dereekb/util",
3489
+ "subpath": "date/date",
3490
+ "signature": "isMonthDaySlashDate(input: string): input is MonthDaySlashDate",
3491
+ "description": "Determines if a string is a valid Month/Day/Year slash date format.",
3492
+ "params": [
3493
+ {
3494
+ "name": "input",
3495
+ "type": "string",
3496
+ "description": "- The string to test",
3497
+ "optional": false
3498
+ }
3499
+ ],
3500
+ "returns": "True if the input is a valid Month/Day/Year slash date",
3501
+ "tags": [
3502
+ "date",
3503
+ "slash",
3504
+ "month",
3505
+ "day",
3506
+ "string",
3507
+ "predicate",
3508
+ "validate",
3509
+ "is",
3510
+ "ismonthdayslashdate"
3511
+ ],
3512
+ "relatedSlugs": [
3513
+ "month-day-slash-date-to-date-string",
3514
+ "month-day-slash-date-string-regex"
3515
+ ]
3516
+ },
3517
+ {
3518
+ "slug": "month-day-slash-date-to-date-string",
3519
+ "name": "monthDaySlashDateToDateString",
3520
+ "kind": "function",
3521
+ "category": "date",
3522
+ "module": "@dereekb/util",
3523
+ "subpath": "date/date",
3524
+ "signature": "monthDaySlashDateToDateString(slashDate: MonthDaySlashDate): ISO8601DayString",
3525
+ "description": "Converts the input MonthDaySlashDate (MM/DD/YYYY) to an ISO8601DayString (YYYY-MM-DD).\nHandles single digit months and days by adding leading zeros.\nIf year is only 2 digits, prepends '20' to make a 4-digit year.",
3526
+ "params": [
3527
+ {
3528
+ "name": "slashDate",
3529
+ "type": "MonthDaySlashDate",
3530
+ "description": "- The slash date string to convert (e.g., '1/1/20' or '11/15/2022')",
3531
+ "optional": false
3532
+ }
3533
+ ],
3534
+ "returns": "An ISO8601 formatted day string (YYYY-MM-DD)",
3535
+ "tags": [
3536
+ "date",
3537
+ "slash",
3538
+ "day",
3539
+ "string",
3540
+ "convert",
3541
+ "parse",
3542
+ "month",
3543
+ "to",
3544
+ "monthdayslashdatetodatestring"
3545
+ ],
3546
+ "relatedSlugs": [
3547
+ "is-month-day-slash-date"
3548
+ ]
3549
+ },
3550
+ {
3551
+ "slug": "date-from-date-or-time-milliseconds-number",
3552
+ "name": "dateFromDateOrTimeMillisecondsNumber",
3553
+ "kind": "function",
3554
+ "category": "date",
3555
+ "module": "@dereekb/util",
3556
+ "subpath": "date/date",
3557
+ "signature": "dateFromDateOrTimeMillisecondsNumber(input: Maybe<DateOrUnixDateTimeMillisecondsNumber>): Maybe<Date>",
3558
+ "description": "Converts a Date object or unix timestamp (in milliseconds) to a Date object.",
3559
+ "params": [
3560
+ {
3561
+ "name": "input",
3562
+ "type": "Maybe<DateOrUnixDateTimeMillisecondsNumber>",
3563
+ "description": "- Date object or unix timestamp (in milliseconds) to convert",
3564
+ "optional": false
3565
+ }
3566
+ ],
3567
+ "returns": "Date object if input is valid. Returns null/undefined if input is null/undefined",
3568
+ "tags": [
3569
+ "date",
3570
+ "milliseconds",
3571
+ "unix",
3572
+ "convert",
3573
+ "normalize",
3574
+ "from",
3575
+ "or",
3576
+ "time",
3577
+ "number",
3578
+ "datefromdateortimemillisecondsnumber"
3579
+ ],
3580
+ "relatedSlugs": [
3581
+ "unix-milliseconds-number-to-date",
3582
+ "date-or-milliseconds-to-date"
3583
+ ]
3584
+ },
3585
+ {
3586
+ "slug": "unix-milliseconds-number-to-date",
3587
+ "name": "unixMillisecondsNumberToDate",
3588
+ "kind": "function",
3589
+ "category": "date",
3590
+ "module": "@dereekb/util",
3591
+ "subpath": "date/date",
3592
+ "signature": "unixMillisecondsNumberToDate(dateTimeNumber: Maybe<UnixDateTimeMillisecondsNumber>): Maybe<Date>",
3593
+ "description": "Converts a unix timestamp number to a Date object.",
3594
+ "params": [
3595
+ {
3596
+ "name": "dateTimeNumber",
3597
+ "type": "Maybe<UnixDateTimeMillisecondsNumber>",
3598
+ "description": "- Unix timestamp number to convert",
3599
+ "optional": false
3600
+ }
3601
+ ],
3602
+ "returns": "Date object if timestamp is valid, null/undefined if timestamp is null/undefined",
3603
+ "tags": [
3604
+ "date",
3605
+ "milliseconds",
3606
+ "unix",
3607
+ "convert",
3608
+ "parse",
3609
+ "number",
3610
+ "to",
3611
+ "unixmillisecondsnumbertodate"
3612
+ ],
3613
+ "relatedSlugs": [
3614
+ "date-from-date-or-time-milliseconds-number",
3615
+ "unix-date-time-seconds-number-to-date"
3616
+ ]
3617
+ },
3618
+ {
3619
+ "slug": "date-or-milliseconds-to-date",
3620
+ "name": "dateOrMillisecondsToDate",
3621
+ "kind": "function",
3622
+ "category": "date",
3623
+ "module": "@dereekb/util",
3624
+ "subpath": "date/date",
3625
+ "signature": "dateOrMillisecondsToDate(dateOrMilliseconds: DateOrMilliseconds, now?: Maybe<Date>): Date",
3626
+ "description": "Converts the input DateOrMilliseconds to a Date.\n\nIf the input is a Date, it is returned as is.\n\nIf the input is a number of milliseconds, it is added to the current date.",
3627
+ "params": [
3628
+ {
3629
+ "name": "dateOrMilliseconds",
3630
+ "type": "DateOrMilliseconds",
3631
+ "description": "- The date or milliseconds to convert to a Date.",
3632
+ "optional": false
3633
+ },
3634
+ {
3635
+ "name": "now",
3636
+ "type": "Maybe<Date>",
3637
+ "description": "- The current date to use when adding milliseconds. Defaults to the current time.",
3638
+ "optional": true
3639
+ }
3640
+ ],
3641
+ "returns": "The Date representation of the input.",
3642
+ "tags": [
3643
+ "date",
3644
+ "milliseconds",
3645
+ "convert",
3646
+ "normalize",
3647
+ "offset",
3648
+ "or",
3649
+ "to",
3650
+ "dateormillisecondstodate"
3651
+ ],
3652
+ "relatedSlugs": [
3653
+ "add-milliseconds",
3654
+ "date-from-date-or-time-milliseconds-number"
3655
+ ]
3656
+ },
3657
+ {
3658
+ "slug": "days-in-year",
3659
+ "name": "DAYS_IN_YEAR",
3660
+ "kind": "const",
3661
+ "category": "date",
3662
+ "module": "@dereekb/util",
3663
+ "subpath": "date/date",
3664
+ "signature": "const DAYS_IN_YEAR: Days",
3665
+ "description": "Number of days in a year (ignoring leap years, which are 366 days).",
3666
+ "params": [],
3667
+ "returns": "Days",
3668
+ "tags": [
3669
+ "date",
3670
+ "day",
3671
+ "year",
3672
+ "duration",
3673
+ "constant",
3674
+ "days",
3675
+ "in",
3676
+ "days_in_year"
3677
+ ],
3678
+ "relatedSlugs": [
3679
+ "days-in-week"
3680
+ ]
3681
+ },
3682
+ {
3683
+ "slug": "hours-in-day",
3684
+ "name": "HOURS_IN_DAY",
3685
+ "kind": "const",
3686
+ "category": "date",
3687
+ "module": "@dereekb/util",
3688
+ "subpath": "date/date",
3689
+ "signature": "const HOURS_IN_DAY: Hours",
3690
+ "description": "Number of hours in a day.",
3691
+ "params": [],
3692
+ "returns": "Hours",
3693
+ "tags": [
3694
+ "date",
3695
+ "hour",
3696
+ "day",
3697
+ "duration",
3698
+ "constant",
3699
+ "hours",
3700
+ "in",
3701
+ "hours_in_day"
3702
+ ],
3703
+ "relatedSlugs": [
3704
+ "minutes-in-day",
3705
+ "ms-in-day"
3706
+ ]
3707
+ },
3708
+ {
3709
+ "slug": "seconds-in-minute",
3710
+ "name": "SECONDS_IN_MINUTE",
3711
+ "kind": "const",
3712
+ "category": "date",
3713
+ "module": "@dereekb/util",
3714
+ "subpath": "date/date",
3715
+ "signature": "const SECONDS_IN_MINUTE: Seconds",
3716
+ "description": "Number of seconds in a minute.",
3717
+ "params": [],
3718
+ "returns": "Seconds",
3719
+ "tags": [
3720
+ "date",
3721
+ "second",
3722
+ "minute",
3723
+ "duration",
3724
+ "constant",
3725
+ "seconds",
3726
+ "in",
3727
+ "seconds_in_minute"
3728
+ ],
3729
+ "relatedSlugs": [
3730
+ "seconds-in-hour",
3731
+ "ms-in-second"
3732
+ ]
3733
+ },
3734
+ {
3735
+ "slug": "minutes-in-day",
3736
+ "name": "MINUTES_IN_DAY",
3737
+ "kind": "const",
3738
+ "category": "date",
3739
+ "module": "@dereekb/util",
3740
+ "subpath": "date/date",
3741
+ "signature": "const MINUTES_IN_DAY: Minutes",
3742
+ "description": "Number of minutes in a day.",
3743
+ "params": [],
3744
+ "returns": "Minutes",
3745
+ "tags": [
3746
+ "date",
3747
+ "minute",
3748
+ "day",
3749
+ "duration",
3750
+ "constant",
3751
+ "minutes",
3752
+ "in",
3753
+ "minutes_in_day"
3754
+ ],
3755
+ "relatedSlugs": [
3756
+ "hours-in-day",
3757
+ "minutes-in-hour"
3758
+ ]
3759
+ },
3760
+ {
3761
+ "slug": "minutes-in-hour",
3762
+ "name": "MINUTES_IN_HOUR",
3763
+ "kind": "const",
3764
+ "category": "date",
3765
+ "module": "@dereekb/util",
3766
+ "subpath": "date/date",
3767
+ "signature": "const MINUTES_IN_HOUR: Minutes",
3768
+ "description": "Number of minutes in an hour.",
3769
+ "params": [],
3770
+ "returns": "Minutes",
3771
+ "tags": [
3772
+ "date",
3773
+ "minute",
3774
+ "hour",
3775
+ "duration",
3776
+ "constant",
3777
+ "minutes",
3778
+ "in",
3779
+ "minutes_in_hour"
3780
+ ],
3781
+ "relatedSlugs": [
3782
+ "minutes-in-day",
3783
+ "seconds-in-minute"
3784
+ ]
3785
+ },
3786
+ {
3787
+ "slug": "seconds-in-hour",
3788
+ "name": "SECONDS_IN_HOUR",
3789
+ "kind": "const",
3790
+ "category": "date",
3791
+ "module": "@dereekb/util",
3792
+ "subpath": "date/date",
3793
+ "signature": "const SECONDS_IN_HOUR: Minutes",
3794
+ "description": "Number of seconds in an hour.",
3795
+ "params": [],
3796
+ "returns": "Minutes",
3797
+ "tags": [
3798
+ "date",
3799
+ "second",
3800
+ "hour",
3801
+ "duration",
3802
+ "constant",
3803
+ "seconds",
3804
+ "in",
3805
+ "seconds_in_hour"
3806
+ ],
3807
+ "relatedSlugs": [
3808
+ "seconds-in-minute",
3809
+ "minutes-in-hour"
3810
+ ]
3811
+ },
3812
+ {
3813
+ "slug": "ms-in-second",
3814
+ "name": "MS_IN_SECOND",
3815
+ "kind": "const",
3816
+ "category": "date",
3817
+ "module": "@dereekb/util",
3818
+ "subpath": "date/date",
3819
+ "signature": "const MS_IN_SECOND: Milliseconds",
3820
+ "description": "Number of milliseconds in a second.",
3821
+ "params": [],
3822
+ "returns": "Milliseconds",
3823
+ "tags": [
3824
+ "date",
3825
+ "milliseconds",
3826
+ "second",
3827
+ "duration",
3828
+ "constant",
3829
+ "ms",
3830
+ "in",
3831
+ "ms_in_second"
3832
+ ],
3833
+ "relatedSlugs": [
3834
+ "ms-in-minute",
3835
+ "seconds-in-minute"
3836
+ ]
3837
+ },
3838
+ {
3839
+ "slug": "ms-in-minute",
3840
+ "name": "MS_IN_MINUTE",
3841
+ "kind": "const",
3842
+ "category": "date",
3843
+ "module": "@dereekb/util",
3844
+ "subpath": "date/date",
3845
+ "signature": "const MS_IN_MINUTE: Milliseconds",
3846
+ "description": "Number of milliseconds in a minute.",
3847
+ "params": [],
3848
+ "returns": "Milliseconds",
3849
+ "tags": [
3850
+ "date",
3851
+ "milliseconds",
3852
+ "minute",
3853
+ "duration",
3854
+ "constant",
3855
+ "ms",
3856
+ "in",
3857
+ "ms_in_minute"
3858
+ ],
3859
+ "relatedSlugs": [
3860
+ "ms-in-second",
3861
+ "ms-in-hour"
3862
+ ]
3863
+ },
3864
+ {
3865
+ "slug": "ms-in-hour",
3866
+ "name": "MS_IN_HOUR",
3867
+ "kind": "const",
3868
+ "category": "date",
3869
+ "module": "@dereekb/util",
3870
+ "subpath": "date/date",
3871
+ "signature": "const MS_IN_HOUR: Milliseconds",
3872
+ "description": "Number of milliseconds in an hour.",
3873
+ "params": [],
3874
+ "returns": "Milliseconds",
3875
+ "tags": [
3876
+ "date",
3877
+ "milliseconds",
3878
+ "hour",
3879
+ "duration",
3880
+ "constant",
3881
+ "ms",
3882
+ "in",
3883
+ "ms_in_hour"
3884
+ ],
3885
+ "relatedSlugs": [
3886
+ "ms-in-minute",
3887
+ "ms-in-day"
3888
+ ]
3889
+ },
3890
+ {
3891
+ "slug": "ms-in-day",
3892
+ "name": "MS_IN_DAY",
3893
+ "kind": "const",
3894
+ "category": "date",
3895
+ "module": "@dereekb/util",
3896
+ "subpath": "date/date",
3897
+ "signature": "const MS_IN_DAY: Milliseconds",
3898
+ "description": "Number of milliseconds in a day.",
3899
+ "params": [],
3900
+ "returns": "Milliseconds",
3901
+ "tags": [
3902
+ "date",
3903
+ "milliseconds",
3904
+ "day",
3905
+ "duration",
3906
+ "constant",
3907
+ "ms",
3908
+ "in",
3909
+ "ms_in_day"
3910
+ ],
3911
+ "relatedSlugs": [
3912
+ "ms-in-hour",
3913
+ "ms-in-week",
3914
+ "hours-in-day"
3915
+ ]
3916
+ },
3917
+ {
3918
+ "slug": "seconds-in-day",
3919
+ "name": "SECONDS_IN_DAY",
3920
+ "kind": "const",
3921
+ "category": "date",
3922
+ "module": "@dereekb/util",
3923
+ "subpath": "date/date",
3924
+ "signature": "const SECONDS_IN_DAY: Seconds",
3925
+ "description": "Number of seconds in a day.",
3926
+ "params": [],
3927
+ "returns": "Seconds",
3928
+ "tags": [
3929
+ "date",
3930
+ "seconds",
3931
+ "day",
3932
+ "duration",
3933
+ "constant",
3934
+ "in",
3935
+ "seconds_in_day"
3936
+ ],
3937
+ "relatedSlugs": [
3938
+ "seconds-in-hour",
3939
+ "seconds-in-week"
3940
+ ]
3941
+ },
3942
+ {
3943
+ "slug": "days-in-week",
3944
+ "name": "DAYS_IN_WEEK",
3945
+ "kind": "const",
3946
+ "category": "date",
3947
+ "module": "@dereekb/util",
3948
+ "subpath": "date/date",
3949
+ "signature": "const DAYS_IN_WEEK: Days",
3950
+ "description": "Number of days in a week.",
3951
+ "params": [],
3952
+ "returns": "Days",
3953
+ "tags": [
3954
+ "date",
3955
+ "day",
3956
+ "week",
3957
+ "duration",
3958
+ "constant",
3959
+ "days",
3960
+ "in",
3961
+ "days_in_week"
3962
+ ],
3963
+ "relatedSlugs": [
3964
+ "ms-in-week",
3965
+ "days-in-year"
3966
+ ]
3967
+ },
3968
+ {
3969
+ "slug": "ms-in-week",
3970
+ "name": "MS_IN_WEEK",
3971
+ "kind": "const",
3972
+ "category": "date",
3973
+ "module": "@dereekb/util",
3974
+ "subpath": "date/date",
3975
+ "signature": "const MS_IN_WEEK: Milliseconds",
3976
+ "description": "Number of milliseconds in a week.",
3977
+ "params": [],
3978
+ "returns": "Milliseconds",
3979
+ "tags": [
3980
+ "date",
3981
+ "milliseconds",
3982
+ "week",
3983
+ "duration",
3984
+ "constant",
3985
+ "ms",
3986
+ "in",
3987
+ "ms_in_week"
3988
+ ],
3989
+ "relatedSlugs": [
3990
+ "ms-in-day",
3991
+ "days-in-week"
3992
+ ]
3993
+ },
3994
+ {
3995
+ "slug": "month-of-year-from-date",
3996
+ "name": "monthOfYearFromDate",
3997
+ "kind": "function",
3998
+ "category": "date",
3999
+ "module": "@dereekb/util",
4000
+ "subpath": "date/date",
4001
+ "signature": "monthOfYearFromDate(date: Date): MonthOfYear",
4002
+ "description": "Retrieves the MonthOfYear value (1-12) from the input Date in the current system timezone.\n\nConverts JavaScript's 0-based month (0-11) to a 1-based month (1-12).",
4003
+ "params": [
4004
+ {
4005
+ "name": "date",
4006
+ "type": "Date",
4007
+ "description": "- The date to extract the month from",
4008
+ "optional": false
4009
+ }
4010
+ ],
4011
+ "returns": "The month of year as a number from 1-12",
4012
+ "tags": [
4013
+ "date",
4014
+ "month",
4015
+ "year",
4016
+ "accessor",
4017
+ "system",
4018
+ "local",
4019
+ "of",
4020
+ "from",
4021
+ "monthofyearfromdate"
4022
+ ],
4023
+ "relatedSlugs": [
4024
+ "month-of-year-from-date-month",
4025
+ "month-of-year-from-utc-date"
4026
+ ]
4027
+ },
4028
+ {
4029
+ "slug": "month-of-year-from-utc-date",
4030
+ "name": "monthOfYearFromUTCDate",
4031
+ "kind": "function",
4032
+ "category": "date",
4033
+ "module": "@dereekb/util",
4034
+ "subpath": "date/date",
4035
+ "signature": "monthOfYearFromUTCDate(date: Date): MonthOfYear",
4036
+ "description": "Retrieves the MonthOfYear value (1-12) from the input Date in the UTC timezone.\n\nConverts JavaScript's 0-based month (0-11) to a 1-based month (1-12).",
4037
+ "params": [
4038
+ {
4039
+ "name": "date",
4040
+ "type": "Date",
4041
+ "description": "- The date to extract the month from",
4042
+ "optional": false
4043
+ }
4044
+ ],
4045
+ "returns": "The month of year as a number from 1-12",
4046
+ "tags": [
4047
+ "date",
4048
+ "month",
4049
+ "year",
4050
+ "accessor",
4051
+ "utc",
4052
+ "of",
4053
+ "from",
4054
+ "monthofyearfromutcdate"
4055
+ ],
4056
+ "relatedSlugs": [
4057
+ "month-of-year-from-date",
4058
+ "month-of-year-from-date-month"
4059
+ ]
4060
+ },
4061
+ {
4062
+ "slug": "month-of-year-from-date-month",
4063
+ "name": "monthOfYearFromDateMonth",
4064
+ "kind": "function",
4065
+ "category": "date",
4066
+ "module": "@dereekb/util",
4067
+ "subpath": "date/date",
4068
+ "signature": "monthOfYearFromDateMonth(dateMonth: DateMonth): MonthOfYear",
4069
+ "description": "Converts a JavaScript Date month (0-11) to a MonthOfYear (1-12).",
4070
+ "params": [
4071
+ {
4072
+ "name": "dateMonth",
4073
+ "type": "DateMonth",
4074
+ "description": "- JavaScript Date month (0-11)",
4075
+ "optional": false
4076
+ }
4077
+ ],
4078
+ "returns": "The month of year as a number from 1-12",
4079
+ "tags": [
4080
+ "date",
4081
+ "month",
4082
+ "year",
4083
+ "convert",
4084
+ "javascript",
4085
+ "of",
4086
+ "from",
4087
+ "monthofyearfromdatemonth"
4088
+ ],
4089
+ "relatedSlugs": [
4090
+ "make-date-month-for-month-of-year",
4091
+ "month-of-year-from-date"
4092
+ ]
4093
+ },
3027
4094
  {
3028
4095
  "slug": "make-date-month-for-month-of-year",
3029
4096
  "name": "makeDateMonthForMonthOfYear",
@@ -3054,7 +4121,145 @@
3054
4121
  "makedatemonthformonthofyear"
3055
4122
  ],
3056
4123
  "relatedSlugs": [
3057
- "month-of-year-from-date-month"
4124
+ "month-of-year-from-date-month",
4125
+ "month-of-year-from-date"
4126
+ ]
4127
+ },
4128
+ {
4129
+ "slug": "is-date",
4130
+ "name": "isDate",
4131
+ "kind": "function",
4132
+ "category": "date",
4133
+ "module": "@dereekb/util",
4134
+ "subpath": "date/date",
4135
+ "signature": "isDate(value: unknown): value is Date",
4136
+ "description": "Returns true if the value is a Date object.\nUses both instanceof and Object.prototype.toString for reliable type checking.",
4137
+ "params": [
4138
+ {
4139
+ "name": "value",
4140
+ "type": "unknown",
4141
+ "description": "- The value to check",
4142
+ "optional": false
4143
+ }
4144
+ ],
4145
+ "returns": "True if the value is a Date object",
4146
+ "tags": [
4147
+ "date",
4148
+ "predicate",
4149
+ "type-guard",
4150
+ "validate",
4151
+ "is",
4152
+ "isdate"
4153
+ ],
4154
+ "relatedSlugs": [
4155
+ "is-equal-date",
4156
+ "is-past"
4157
+ ]
4158
+ },
4159
+ {
4160
+ "slug": "is-equal-date",
4161
+ "name": "isEqualDate",
4162
+ "kind": "function",
4163
+ "category": "date",
4164
+ "module": "@dereekb/util",
4165
+ "subpath": "date/date",
4166
+ "signature": "isEqualDate(a: Date, b: Date): boolean",
4167
+ "description": "Returns true if the two input dates represent the same point in time.\nCompares the timestamp values rather than the object references.",
4168
+ "params": [
4169
+ {
4170
+ "name": "a",
4171
+ "type": "Date",
4172
+ "description": "- First date to compare",
4173
+ "optional": false
4174
+ },
4175
+ {
4176
+ "name": "b",
4177
+ "type": "Date",
4178
+ "description": "- Second date to compare",
4179
+ "optional": false
4180
+ }
4181
+ ],
4182
+ "returns": "True if the dates represent the same point in time",
4183
+ "tags": [
4184
+ "date",
4185
+ "equal",
4186
+ "compare",
4187
+ "predicate",
4188
+ "is",
4189
+ "isequaldate"
4190
+ ],
4191
+ "relatedSlugs": [
4192
+ "is-date",
4193
+ "is-past"
4194
+ ]
4195
+ },
4196
+ {
4197
+ "slug": "is-past",
4198
+ "name": "isPast",
4199
+ "kind": "function",
4200
+ "category": "date",
4201
+ "module": "@dereekb/util",
4202
+ "subpath": "date/date",
4203
+ "signature": "isPast(input: Date): boolean",
4204
+ "description": "Returns true if the input date is in the past relative to the current time.",
4205
+ "params": [
4206
+ {
4207
+ "name": "input",
4208
+ "type": "Date",
4209
+ "description": "- The date to check",
4210
+ "optional": false
4211
+ }
4212
+ ],
4213
+ "returns": "True if the date is in the past",
4214
+ "tags": [
4215
+ "date",
4216
+ "past",
4217
+ "compare",
4218
+ "predicate",
4219
+ "time",
4220
+ "is",
4221
+ "ispast"
4222
+ ],
4223
+ "relatedSlugs": [
4224
+ "is-equal-date",
4225
+ "is-date"
4226
+ ]
4227
+ },
4228
+ {
4229
+ "slug": "add-milliseconds",
4230
+ "name": "addMilliseconds",
4231
+ "kind": "function",
4232
+ "category": "date",
4233
+ "module": "@dereekb/util",
4234
+ "subpath": "date/date",
4235
+ "signature": "addMilliseconds(input: Maybe<Date>, ms: Maybe<Milliseconds>): Maybe<Date>",
4236
+ "description": "Adds milliseconds to the input date, returning a new Date object.\nIf no date is input, then returns the input unchanged.",
4237
+ "params": [
4238
+ {
4239
+ "name": "input",
4240
+ "type": "Maybe<Date>",
4241
+ "description": "- The date to add milliseconds to",
4242
+ "optional": false
4243
+ },
4244
+ {
4245
+ "name": "ms",
4246
+ "type": "Maybe<Milliseconds>",
4247
+ "description": "- The number of milliseconds to add (defaults to 0 if null or undefined)",
4248
+ "optional": false
4249
+ }
4250
+ ],
4251
+ "returns": "A new Date with the added milliseconds, or the original input if not a Date",
4252
+ "tags": [
4253
+ "date",
4254
+ "milliseconds",
4255
+ "add",
4256
+ "offset",
4257
+ "time",
4258
+ "addmilliseconds"
4259
+ ],
4260
+ "relatedSlugs": [
4261
+ "date-or-milliseconds-to-date",
4262
+ "ms-in-second"
3058
4263
  ]
3059
4264
  },
3060
4265
  {