augmented-date
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

TS Augmented Date

Extends Date methods adding:

  • (new Date()).getyyyyMMddHHmmssSSS(): string;
  • (new Date()).getyyyyMMddHHmmss(): string;
  • (new Date()).getyyyyMMdd(): string;
  • (new Date()).getHHmmssSSS(): string;
  • (new Date()).getHHmmss(): string;
  • (new Date()).getHHmm(): string;
  • Date.nowyyyyMMddHHmmssSSS(): string;
  • Date.nowyyyyMMddHHmmss(): string;
  • Date.nowyyyyMMdd(): string;
  • Date.nowHHmmssSSS(): string;
  • Date.nowHHmmss(): string;
  • Date.nowHHmm(): string;

No additional dependencies!

Package Sidebar

Install

npm i augmented-date

Weekly Downloads

10

Version

0.1.0

License

MIT

Unpacked Size

21.8 kB

Total Files

11

Last publish

Collaborators

  • tapiau