Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

3h-time

A time formatter.

3hdatefmtformatformattertime
Published10 Jul 2018
Direct dependencies0
Transitive dependenciesNot calculated

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.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-sPrwL4YyH50XW2ubS5TbJT/Ph37GTM+X/Q9xAZkhjB+QuH1Q9gmzKob0iNkHscuavwODlJe72rBKx2yuUt0wew==",
  "shasum": "8828a238a2b92e65a2efaa289881e2ec38ae185d",
  "tarball": "https://registry.npmjs.org/3h-time/-/3h-time-1.0.0.tgz",
  "fileCount": 12,
  "unpackedSize": 13349,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRGsXCRA9TVsSAnZWagAASfcP/0Li26jfVpt/mOIf6urI\n1AziquKhV7PdN4c3qZmkQwPHIpeyzNhmK7ayTuAVGNSH7fcq7HSHuAsUiXTX\nktjzvu5iBF0fa0I5Ieuilc8aL+uifOGKEofIZvu5W5U43B731iiv0x44tsnP\nwou4iOQH4qFit+IFYLGy3ggD5UPcGtt0gq8Didb8R0ZtyKMyOzChwulmjCfT\neFBgKCuZcFAtznDX8oHHoGeo0wcjed0wW+noDx7aw/kEMO379vmUD77+2wYd\nfIheSIai7vx9H7miAZ9/s7tGOeo6uF5VXV75cY8JyT8dfAxfhjlwn4Pm2LHk\nwlqPQNDf6ZWJbiJ94dRFREn024VCXV0MnkPwSG6ut/uEpGwcrjvkF41qVTHA\nEoYrwpGKSiJtbjtYjAr93xH6ew7yHvw3M20Evo6L8JJ/ZuMEyyMVCJJ5dSia\n6hKbXz/MS1bg9SIaf1N1hLV0vhS68nn54QYXXtyUQRijrNgBeHDYXXyjkXxM\nFmKgtJWd5uLPyUHdB6OeHD9yZHQTim1bsYuJU1aY9OTjDS9BkkC9aZptgE4c\nux3VOJCMRhTPYsV8/eZInQv7/XC76BYB/UjBb7M38XHKUhYpkEzZdxJvCxU8\nnLwH0YLKjutsWOTSSzgolxkW6DPk6RnLGDcuqU9iZHiU5CeiARaN86nATCp0\n9V1o\r\n=M5eP\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIECfvd7vRuwIsEM1NcQp4CV7ErLqcaPwmee4Gw03rEb3AiB1nUOcguTsm0t9oZfx8oeT/Ti7NsvLb95c0DHK01+UCA=="
    }
  ]
}

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_version:4783a35860a3d2f82364755d468797177dd07fc533bec1898de205d5251fde16

Other collected versions

1.2.11 Aug1.2.01 Aug1.1.121 Jul1.1.021 Jul1.0.114 Jul0.1.523 JunView all collected versions →