date.format
Advanced tools
Comparing version 1.1.0 to 1.1.1
/* jslint node: true */ | ||
"use strict"; | ||
global.modulesCache = global.modulesCache || {}; | ||
if(global.modulesCache['date.format']){ | ||
return; | ||
} else { | ||
global.modulesCache['date.format'] = true; | ||
} | ||
require('string.format'); | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "date.format", | ||
"description": "JS Date format => date.format('Today {Y}/{M}/{D} at {h}:{m}:{s}h and {ms}ms');", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": { | ||
@@ -30,3 +30,6 @@ "name": "Javier Gallego Martín", | ||
"beautify", | ||
"pattern" | ||
"pattern", | ||
"node", | ||
"js", | ||
"javascript" | ||
], | ||
@@ -33,0 +36,0 @@ "dependencies": { |
@@ -8,2 +8,5 @@ # Date.format | ||
Call to method with the pattern you want and will return it formated. | ||
> Date.format is based on [String.format](https://github.com/bifuer/String.format) > "Hello {name}!".format({name:"Homer"}); | ||
[npm](https://www.npmjs.com/package/date.format) | ||
@@ -43,5 +46,9 @@ | ||
+ **s**: seconds without leading zeros 0-59. **ss** seconds 2 digits. | ||
+ **ms**: milliseconds without leading zeros 0-999. **mss** milliseconds 4 digits. | ||
+ **ms**: milliseconds without leading zeros 0-999. **mss** milliseconds 4 digits. | ||
NEW: | ||
+ **tz**: Timezone difference between UTC and Local Time in minutes | ||
+ **tzh**: Timezone difference between UTC and Local Time in hours | ||
## Licence | ||
@@ -56,2 +63,5 @@ MIT | ||
Especificamos al método el formato en el que devolverá el objeto date. | ||
> Date.format utiliza [String.format](https://github.com/bifuer/String.format) > "Hello {name}!".format({name:"Homer"}); | ||
[npm](https://www.npmjs.com/package/date.format) | ||
@@ -92,4 +102,8 @@ | ||
NEW: | ||
+ **tz**: Diferencia de la zona horaria con respecto a UTC en minutos | ||
+ **tzh**: Diferencia de la zona horaria con respecto a UTC en horas | ||
## Licencia | ||
MIT |
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
8092
55
106