You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
unknown fe79185e87 ali aslani 1 年之前
..
dist ali aslani 1 年之前
nuxt ali aslani 1 年之前
src ali aslani 1 年之前
typings ali aslani 1 年之前
.babelrc ali aslani 1 年之前
LICENSE ali aslani 1 年之前
README.md ali aslani 1 年之前
package.json ali aslani 1 年之前
rollup.config.js ali aslani 1 年之前
test.js ali aslani 1 年之前

README.md

Persian Date

A lightweight but professional library for working with Persian dates. This supports Persian (Jalali) and gregorian calendar and from v2.0 supports Nodejs. Also, you can use it in nuxtjs without any problems.

npm version

Features

  • nuxt support
  • nodejs support
  • Persian (jalali) and Gregorian calendar

Documentation

For full documentation, visit https://alireza-ab.ir/persian-date

The peace of PersianDate code

Install

npm i @alireza-ab/persian-date

Usage

let date = new PersianDate([1400, 1, 1], "jalali");

date.diff("1399/9", "date") + " days"; // 120 days

date.isAfter("1399/12/30"); // true

date.addDay(5).toString(); // 1400/01/06

License

PersianDate is available under the MIT license.