@fr0st/datetime 8.0.2 → 8.0.3
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/README.md +1 -1
- package/dist/frost-datetime.js +8 -10
- package/dist/frost-datetime.js.map +1 -1
- package/dist/frost-datetime.min.js.map +1 -1
- package/package.json +6 -6
- package/src/date-time.js +6 -9
- package/src/helpers.js +2 -2
package/README.md
CHANGED
package/dist/frost-datetime.js
CHANGED
|
@@ -141,7 +141,8 @@
|
|
|
141
141
|
second: 60,
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
-
/** @
|
|
144
|
+
/** @import DateTime from './date-time.js' */
|
|
145
|
+
|
|
145
146
|
|
|
146
147
|
/**
|
|
147
148
|
* DateTime Helpers
|
|
@@ -3601,10 +3602,8 @@
|
|
|
3601
3602
|
|
|
3602
3603
|
/**
|
|
3603
3604
|
* Returns a copy with the hours changed in the current time zone.
|
|
3604
|
-
* @param {number}
|
|
3605
|
-
*
|
|
3606
|
-
* @param {number} [seconds] The seconds. (0-59)
|
|
3607
|
-
* @param {number} [milliseconds] The milliseconds.
|
|
3605
|
+
* @param {...number} args The hours (0-23), optionally followed by minutes
|
|
3606
|
+
* (0-59), seconds (0-59), and milliseconds.
|
|
3608
3607
|
* @returns {DateTime} A new DateTime instance.
|
|
3609
3608
|
*/
|
|
3610
3609
|
withHours(...args) {
|
|
@@ -3640,9 +3639,8 @@
|
|
|
3640
3639
|
|
|
3641
3640
|
/**
|
|
3642
3641
|
* Returns a copy with the minutes changed in the current time zone.
|
|
3643
|
-
* @param {number}
|
|
3644
|
-
*
|
|
3645
|
-
* @param {number} [milliseconds] The milliseconds.
|
|
3642
|
+
* @param {...number} args The minutes (0-59), optionally followed by seconds
|
|
3643
|
+
* (0-59) and milliseconds.
|
|
3646
3644
|
* @returns {DateTime} A new DateTime instance.
|
|
3647
3645
|
*/
|
|
3648
3646
|
withMinutes(...args) {
|
|
@@ -3699,8 +3697,8 @@
|
|
|
3699
3697
|
|
|
3700
3698
|
/**
|
|
3701
3699
|
* Returns a copy with the seconds changed in the current time zone.
|
|
3702
|
-
* @param {number}
|
|
3703
|
-
*
|
|
3700
|
+
* @param {...number} args The seconds (0-59), optionally followed by
|
|
3701
|
+
* milliseconds.
|
|
3704
3702
|
* @returns {DateTime} A new DateTime instance.
|
|
3705
3703
|
*/
|
|
3706
3704
|
withSeconds(...args) {
|