Socket
Socket
Sign inDemoInstall

date.format

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date.format - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

7

index.js
/* 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 @@

7

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc