mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
Release v0.10.2
This commit is contained in:
parent
52753479c8
commit
a0a62db076
6 changed files with 52 additions and 12 deletions
|
|
@ -1,3 +1,11 @@
|
|||
v0.10.2 on 2023-05-24
|
||||
|
||||
- Fix test case for %c in current versions of node.js
|
||||
|
||||
- Fix %-y so it omits the leading zero
|
||||
|
||||
Thanks to [Aryan Arora](https://github.com/aryan-debug) for both fixes!
|
||||
|
||||
v0.10.1 on 2021-12-12
|
||||
---------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ strftime
|
|||
|
||||
strftime for JavaScript. Works in (at least) node.js and browsers. Supports localization and timezones. Most standard specifiers from C are supported as well as some other extensions from Ruby.
|
||||
|
||||
[](https://www.npmjs.com/package/strftime) [](https://nodejs.org) [](https://sjs.mit-license.org)
|
||||
[](https://www.npmjs.com/package/strftime) [](https://nodejs.org) [](https://sjs.mit-license.org)
|
||||
|
||||
Installation
|
||||
============
|
||||
|
|
@ -148,7 +148,7 @@ e.g. `%q` becomes `q`. Use `%%` to get a literal `%` sign.
|
|||
- X: equivalent to `%T` or `%r` in en_US (based on locale)
|
||||
- x: equivalent to `%D` in en_US (based on locale)
|
||||
- Y: the year with the century
|
||||
- y: the year without the century (00-99)
|
||||
- y: the year without the century, padded to 2 digits (00-99)
|
||||
- Z: the time zone name, replaced with an empty string if it is not found
|
||||
- z: the time zone offset from UTC, with a leading plus sign for UTC and zones east
|
||||
of UTC and a minus sign for those west of UTC, hours and minutes follow each
|
||||
|
|
@ -197,11 +197,12 @@ Contributors
|
|||
* [TJ Holowaychuk](https://github.com/tj)
|
||||
* [w0den](https://github.com/w0den)
|
||||
* [Yusuke Kawasaki](https://github.com/kawanet)
|
||||
* [Aryan Arora](https://github.com/aryan-debug)
|
||||
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
Copyright 2010 - 2021 Sami Samhuri sami@samhuri.net
|
||||
Copyright 2010 - 2023 Sami Samhuri sami@samhuri.net
|
||||
|
||||
[MIT license](https://sjs.mit-license.org)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "strftime",
|
||||
"version": "0.10.1",
|
||||
"version": "0.10.2",
|
||||
"main": "strftime.js",
|
||||
"ignore": [
|
||||
"Readme.md",
|
||||
|
|
|
|||
|
|
@ -2,8 +2,15 @@
|
|||
"name": "strftime",
|
||||
"repo": "samsonjs/strftime",
|
||||
"description": "strftime date formatting",
|
||||
"keywords": ["strftime", "format", "date", "time"],
|
||||
"version": "0.10.1",
|
||||
"keywords": [
|
||||
"strftime",
|
||||
"format",
|
||||
"date",
|
||||
"time"
|
||||
],
|
||||
"version": "0.10.2",
|
||||
"main": "strftime.js",
|
||||
"scripts": ["strftime.js"]
|
||||
}
|
||||
"scripts": [
|
||||
"strftime.js"
|
||||
]
|
||||
}
|
||||
17
package-lock.json
generated
Normal file
17
package-lock.json
generated
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "strftime",
|
||||
"version": "0.10.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "strftime",
|
||||
"version": "0.10.2",
|
||||
"license": "MIT",
|
||||
"devDependencies": {},
|
||||
"engines": {
|
||||
"node": ">=0.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
15
package.json
15
package.json
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "strftime",
|
||||
"description": "strftime for JavaScript",
|
||||
"version": "0.10.1",
|
||||
"version": "0.10.2",
|
||||
"homepage": "https://samhuri.net/projects/strftime",
|
||||
"author": "Sami Samhuri <sami@samhuri.net>",
|
||||
"contributors": [
|
||||
|
|
@ -24,9 +24,16 @@
|
|||
"Stian Grytøyr (https://github.com/stiang)",
|
||||
"TJ Holowaychuk (https://github.com/tj)",
|
||||
"w0den (https://github.com/w0den)",
|
||||
"Yusuke Kawasaki (https://github.com/kawanet)"
|
||||
"Yusuke Kawasaki (https://github.com/kawanet)",
|
||||
"Aryan Arora (https://github.com/aryan-debug)"
|
||||
],
|
||||
"keywords": [
|
||||
"strftime",
|
||||
"format",
|
||||
"string",
|
||||
"time",
|
||||
"date"
|
||||
],
|
||||
"keywords": ["strftime", "format", "string", "time", "date"],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/samsonjs/strftime.git"
|
||||
|
|
@ -43,4 +50,4 @@
|
|||
"dependencies": {},
|
||||
"devDependencies": {},
|
||||
"optionalDependencies": {}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue