@alipiry/tite-api
v1.0.4
Published
Time & Date getter api
Downloads
6
Maintainers
Readme
Tite API
Get time & date together with Tite API.
Note: I've develop this API to make my tite-cli work, so it is not a complete API.
Installation
> yarn add @alipiry/tite-api
Usage
TypeScript
:
import * as tite from '@alipiry/tite-api';
// get time
console.log(tite.nowTime: string);
// get jalali date
console.log(tite.jalaliDate: string);
// get gregorian date
console.log(tite.gregorianDate: string);
// get jalali & gregorian year
console.log(tite.getYear(): string);
// get jalali & gregorian month
console.log(tite.getMonth(): string);
// get jalali & gregorian day
console.log(tite.getDay(): string);
// get jalali & gregorian week day
console.log(tite.getWeekDay(): string);
Author
LICENCE
MIT