Catalog npm
PACKAGE EXPLORERView in registry

3h-time

npm

A time formatter.

3hdatefmtformatformattertime
Versions collected12
Direct dependencies6From release 1.2.1
Last observed20 Oct, 19:43 UTC

README

Current package documentation

3h-time

A time formatter.

Install

npm i 3h-time

APIs

Time.format(date: Date, format: string): string

Format the given date.

Time.get(format: string):string

Equal to Time.format(new Date(), format).

Time.replacers: { [id: string]: (date: Date) => string; }

A replacer map.

Replace map

  • YYYY - Full year.
  • YY - Short year.
  • MMMM - Full month name.
  • MMM - Short month name.
  • MM - Month number with leading zero.
  • M - Month number without leading zero.
  • DD - Date number with leading zero.
  • D - Date number without leading zero.
  • dd - Date number with st/nd/rd/th and leading zero.
  • d - Date number with st/nd/rd/th but without leading zero.
  • HH - Hour(0-23) with leading zero.
  • H - Hour(0-23) without leading zero.
  • hh - Hour(0-11) with leading zero.
  • h - Hour(0-11) without leading zero.
  • mm - Minutes with leading zero.
  • m - Minutes without leading zero.
  • SS - Seconds with leading zero.
  • S - Seconds without leading zero.
  • sss - Full milliseconds with leading zero.
  • ss - Shorter milliseconds.
  • s - Shortest milliseconds.
  • WW - Full day name.
  • W - Short day name.
  • ww - Full day number.
  • w - Short day number.
  • A - AM/PM.
  • a - am/pm.

Changelog

See CHANGELOG.md.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 12

Collected releases
VersionPublishedDirect dependenciesOpen version
1.2.1Registry latest1 Aug 20186
1.2.01 Aug 20186
1.1.121 Jul 20181
1.1.021 Jul 20181
1.0.114 Jul 20180
1.0.010 Jul 20180
0.1.523 Jun 20180
0.1.423 Jun 20180
0.1.317 Jun 20180
0.1.217 Jun 20180
0.1.116 Jun 20180
0.1.015 Jun 20180

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
huang2002/3h-time

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:43 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ee833613ec21356ab0d9f6f9761b908bd1212cb8b78ad7f473c713ac39a48794