Skip to content

Armnajafi/sundate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sundate


sundate download



Installation

npm install sundate@latest -g

Examples for use

Get a custom time date

import Sundate from "sundate"
 let sundate = new Sundate(1712941445900)
 console.log(sundate.show(false)) // show gregorian like : [1403 , 1 , 1]
 console.log(sundate.show(true)) // show shamsi like : [2024 , 3 , 13]

Get Currently Date

import Sundate from "sundate"
 let sundate = new Sundate()
 console.log(sundate.now(false)) // show gregorian like : [1403 , 1 , 1]
 console.log(sundate.now(true)) // show shamsi like : [2024 , 3 , 13]

Report Bug

https://github.com/Armnajafi/sundate/issues

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published