date-template
Advanced tools
Comparing version 2.0.8 to 2.0.9
{ | ||
"name": "date-template", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"description": "Easy function for returning date by template.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,3 +28,2 @@ # date-template | ||
/* return new Date */ | ||
var dateTemplate = require('date-template') | ||
@@ -51,5 +50,3 @@ dateTemplate('%h:%m:%s') | ||
/* return other Date */ | ||
var dateTemplate = require('date-template') | ||
var milliseconds = +new Date() | ||
@@ -74,5 +71,3 @@ // 1499015643673 | ||
/* return Date to user format */ | ||
var dateTemplate = require('date-template') | ||
var middlewareMount = (date) => { | ||
@@ -141,5 +136,5 @@ var mounth = [ | ||
h: { key: /%0?h/g, value: date.getHours(), }, // hourse | ||
m: { key: /%0?m/g, value: date.getMinutes(), }, // minutes; | ||
s: { key: /%0?s/g, value: date.getSeconds(), }, // seconds | ||
ms: { key: /%0?ms/g, value: date.getMilliseconds(), }, // milliseconds | ||
m: { key: /%0?m/g, value: date.getMinutes(), }, // minutes; | ||
} | ||
@@ -146,0 +141,0 @@ tmp = middleware ? middleware(tmp) : tmp |
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
6493
151