Catalog npm
Back to packageRELEASE DETAILS

1.2.0

npm

3h-time

A time formatter.

3hdatefmtformatformattertime
Published1 Aug 2018
Direct dependencies6
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 6

Native requirements
6 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
babel-core
Environment
{
  "local_name": "babel-core",
  "alias": false,
  "peer_metadata": null
}
^6.26.3development
babel-preset-env
Environment
{
  "local_name": "babel-preset-env",
  "alias": false,
  "peer_metadata": null
}
^1.7.0development
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^0.63.5development
rollup-plugin-babel
Environment
{
  "local_name": "rollup-plugin-babel",
  "alias": false,
  "peer_metadata": null
}
^3.0.7development
terser
Environment
{
  "local_name": "terser",
  "alias": false,
  "peer_metadata": null
}
^3.8.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^2.9.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-Np7eSvkAtSwC1Kay9QqltS/po7L2oIdStkYw0AmkirYRxHI3dwcBk3HLBwSrSkTJf9iCHiB6fgTk/HTVc0rcMQ==",
  "shasum": "68f140a2f57ef773fea509e5f8f4ea1155d9410f",
  "tarball": "https://registry.npmjs.org/3h-time/-/3h-time-1.2.0.tgz",
  "fileCount": 12,
  "unpackedSize": 17202,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbYYilCRA9TVsSAnZWagAAFukP/1IufRgGKvcnTq0DLa+P\nBc3K0/Hv5+0fJMO2PT8ql31MIj0x6CzivbfbvGNuVw8qdOAXNJbtncNreRTP\nn/FVi21sfSmXCx0P8bGVIgVHs/yYaG7TMc187ufdNXxXR+sr2VgZLnoMK0fX\nicv4eR81czJVe5Ubs8I1F+gB3+BPDHMz0FUIURdJaFcnkz+1EO6KJS5WVO2Z\nBYJ1qu77/3NLU3rhyQBrYH0ivXJNh3xahpZ+MyhGi6l7JhCzHJ7v3wJ5HJqB\nk6pbauzUTGwwz3P1oZHBjS/b9ancRZcqhlfenP1uNECcwTH68X8IdrarvMNO\nm5vwRO0JQgChE1LVSpZrQfd2I9bocLVq83E++O9L8xf5W5NqnHaPrBtQwjsk\niVshherPubqs0KK9JJ5s3hLPdowwDQY2q/weBUnA8JqKNFXqKaL01uWmPqeR\n3tEv3MzyCky8Cm54cL0FNdKYO/I2d5hKcEEh8NjN6uJCtk0cYGxiDD2Rb4JF\n0Gtz+n9aGGrpHsv8Yq/jRFBUDuY6GzPRht0RMrNXmjPojRsl4IZ4lB1aBYz/\nIfpSmva0i1lrYHMhNho2sOImyUvhNU5T7p0THInbpbi7TvwoX3ZTsMJTuYsy\ns3hu1kTwrcVDMZMdsd16xEbicMtIDzOU7b2aLGKaC32kggdU0HDBqW6vlkqs\nxYjD\r\n=jUPy\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQC2kklDn/4GnyQuRtCMdj3f6xToeQe2Z2VnNSwy/zfDuQIhAMQsRYKb8GPL9BQ8LzZnRiqQ9ehpjWRamGkbry1LNQvn"
    }
  ]
}

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:c9e13d91a0dcf76af28f041e8a94f168ed39f3eebe72fa334dda081dec762b1a

Other collected versions

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