Skip to content

alipiry/tite-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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