diff-ymd-package
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -73,2 +73,8 @@ ## Changelog | ||
### [v1.1.1] | ||
#### Fixed | ||
fixed some issues and configured files for v1.0.1 | ||
### [Next Release] - Planning release time | ||
@@ -78,4 +84,4 @@ | ||
- [Unreleased](https://github.com/farhan7reza7/diff-ymd-package/compare/v1.1.0...HEAD) | ||
- [v1.1.0](https://github.com/farhan7reza7/diff-ymd-package/releases/tag/v1.1.0) | ||
- [Unreleased](https://github.com/farhan7reza7/diff-ymd-package/compare/v1.1.1...HEAD) | ||
- [v1.1.1](https://github.com/farhan7reza7/diff-ymd-package/releases/tag/v1.1.1) | ||
- [Next Release](https://github.com/farhan7reza7/diff-ymd-package/milestone/2) |
{ | ||
"name": "diff-ymd-package", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Utility class for calculating the difference between two dates in formatted ways like (aY bM cD)(aYears bMonths cDays) or customized formats like aY-bM-cD or aYears-bMonths-cDays etc.", | ||
@@ -5,0 +5,0 @@ "main": "src/diff-ymd.js", |
@@ -55,10 +55,10 @@ # diff-ymd-package | ||
const customFormat = Y + 'years ' + M + 'months ' + D + 'days'; | ||
console.log(customFormat); // output: 1years 11months 30days | ||
const customFormat = Y + 'year ' + M + 'months ' + D + 'days'; | ||
console.log(customFormat); // output: 1year 11months 30days | ||
*/ | ||
// you can use this method for creating format of your choice | ||
const customizedFormat = Formatter.customizeFormat('Ys', 'Ms', 'Ds', '-'); | ||
const customizedFormat = Formatter.customizeFormat('Y', 'Ms', 'Ds', '-'); | ||
console.log(customizedFormat); // Output: "1Ys-2Ms-2Ds" | ||
console.log(customizedFormat); // Output: "1Y-11Ms-30Ds" | ||
``` | ||
@@ -65,0 +65,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1061399