date-template
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -38,2 +38,3 @@ var dateTemplate = require('./index') | ||
var mounth = [ | ||
null | ||
'January', | ||
@@ -52,3 +53,3 @@ 'February', | ||
] | ||
date['~M~'] = mounth[ date['~M~']-1 ] | ||
date['~M~'] = mounth[ date['~M~'] ] | ||
return date | ||
@@ -55,0 +56,0 @@ } |
{ | ||
"name": "date-template", | ||
"version": "1.0.3", | ||
"description": "Easy function to return template date", | ||
"version": "1.0.4", | ||
"description": "Easy function to return template date.", | ||
"main": "index.js", | ||
@@ -18,4 +18,5 @@ "author": "serg <ss0sergey@gmail.com>", | ||
"time format", | ||
"time template" | ||
"time template", | ||
"template" | ||
] | ||
} |
@@ -13,4 +13,4 @@ ## date-template | ||
- ```~Y~``` Year **** | ||
- ```~M~``` Month, from 01 to 12 | ||
- ```~D~``` Day, from 01 to 31 | ||
- ```~M~``` Month, from 1 to 12 | ||
- ```~D~``` Day, from 1 to 31 | ||
- ```~Dw~``` Day of the week 0-sunday, 6-saturday | ||
@@ -72,2 +72,3 @@ - ```~h~``` hourse | ||
var mounth = [ | ||
null, | ||
'January', | ||
@@ -86,3 +87,3 @@ 'February', | ||
] | ||
date['~M~'] = mounth[ date['~M~']-1 ] | ||
date['~M~'] = mounth[ date['~M~'] ] | ||
return date | ||
@@ -89,0 +90,0 @@ } |
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
4720
72
115