@hardlydifficult/date-time 1.0.3 → 1.0.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 (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,8 +41,9 @@ import { toMilliseconds } from '@hardlydifficult/date-time';
41
41
 
42
42
  toMilliseconds({ value: 2, unit: 'seconds' }); // 2000
43
43
  toMilliseconds({ value: 1, unit: 'hours' }); // 3600000
44
- toMilliseconds({ value: 0.5, unit: 'seconds' }); // 500 (fractional values supported)
44
+ toMilliseconds({ value: 0.5, unit: 'seconds' }); // 500
45
45
  toMilliseconds({ value: 0, unit: 'minutes' }); // 0
46
+ toMilliseconds({ value: 1, unit: 'days' }); // 86400000
46
47
  ```
47
48
 
48
- Supports all time units and handles fractional values correctly.
49
+ Supports all time units (`milliseconds`, `seconds`, `minutes`, `hours`, `days`) and handles fractional values and zero correctly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hardlydifficult/date-time",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [