2.0.0 • Published 9 months ago

dallmo-timestamp v2.0.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
9 months ago

dallmo-timestamp

  • a simple wrapper based on dayjs
  • ESM-native
  • using this in CJS has to be done via dynamic import

usage

cjs

"use strict";

( async()=>{

  // using ESM-native module via dynamic import
  const dt = await import("dallmo-timestamp");
  
  console.log( dt.dallmo_timestamp().full_ms );
  console.log( dt.dallmo_timestamp().full_ms );
  console.log( dt.dallmo_timestamp().full_ms );

})(); // self-run async main

esm

import {dallmo_timestamp} from 'dallmo-timestamp';

console.log( dallmo_timestamp().full_ms );
console.log( dallmo_timestamp().full_ms );
console.log( dallmo_timestamp().full_ms );

the timestamp object properties

  • YY
  • YYYY
  • year
  • month
  • MM
  • day
  • DD
  • hour
  • HH
  • min
  • mm
  • sec
  • ss
  • sss
  • ms
  • date
  • time
  • time_ms
  • full
  • full_ms
  • filename
1.0.0

9 months ago

2.0.0

9 months ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago