mol_time_all
v1.1.1164
Published
Small, simple, powerful, and fast TypeScript/JavaScript library for proper date/time/duration/interval arithmetic.
Downloads
1,648
Maintainers
Readme
$mol_time
Small, simple, powerful, and fast TypeScript/JavaScript library for proper date/time/duration/interval arithmetic.
Installation
Direct
<script src="https://unpkg.com/mol_time_all/web.js"></script>
<script>
alert( new $mol_time_moment() ) // alerts current time
</script>
NPM
npm install mol_time_all
JavaScript
const Moment = require( 'mol_time_all' ).$mol_time_moment
console.log( new Moment().toString() ) // logs current time
TypeScript
import { $mol_time_moment as Moment } from 'mol_time_all'
console.log( new Moment().toString() ) // logs current time