Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

strftime

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strftime - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

2

component.json

@@ -6,5 +6,5 @@ {

"keywords": ["strftime", "format", "date", "time"],
"version": "0.8.1",
"version": "0.8.2",
"main": "strftime.js",
"scripts": ["strftime.js"]
}
{
"name": "strftime",
"description": "strftime for JavaScript",
"version": "0.8.1",
"version": "0.8.2",
"homepage": "http://samhuri.net/proj/strftime",

@@ -6,0 +6,0 @@ "author": "Sami Samhuri <sami@samhuri.net>",

@@ -167,3 +167,3 @@ //

// '01'
case 'e': return d.getDate();
case 'e': return pad(d.getDate(), padding == null ? ' ' : padding);

@@ -241,3 +241,3 @@ // '1970-01-01'

// '1-Jan-1970'
// ' 1-Jan-1970'
case 'v': return _strftime(locale.formats.v || '%e-%b-%Y', d, locale);

@@ -244,0 +244,0 @@

@@ -68,3 +68,3 @@ #!/usr/bin/env node

assert.format('%0d', '07')
assert.format('%e', '7')
assert.format('%e', ' 7')
assert.format('%F', '2011-06-07')

@@ -99,3 +99,3 @@ assert.format('%H', null, '18')

assert.format('%u', '2')
assert.format('%v', '7-Jun-2011')
assert.format('%v', ' 7-Jun-2011')
assert.format('%W', '23')

@@ -157,3 +157,3 @@ assert.format('%W', '23', null, new Date(+TestTime + 5 * 86400000))

assert.format_it('%T', null, 'it$18:51:45')
assert.format_it('%v', 'it$7-giu-2011')
assert.format_it('%v', 'it$ 7-giu-2011')
ok('Localization')

@@ -160,0 +160,0 @@

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