sundate
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i sundate

      Weekly Downloads

      26

      Version

      1.1.5

      License

      ISC

      Unpacked Size

      25.7 kB

      Total Files

      11

      Last publish

      Collaborators

      • armnajafi