1.0.4 • Published 5 years ago

@alipiry/tite-api v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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

Ali Piry

LICENCE

MIT