Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.19 KB

readme.md

File metadata and controls

45 lines (31 loc) · 1.19 KB

$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

API

Articles