https://github.com/farzinfweb/ferz
> Ferz is a library for working with dates, times and 10 different calendars in JavaScript.
https://github.com/farzinfweb/ferz
calendars date-converter dates datetime times
Last synced: 10 days ago
JSON representation
> Ferz is a library for working with dates, times and 10 different calendars in JavaScript.
- Host: GitHub
- URL: https://github.com/farzinfweb/ferz
- Owner: farzinfweb
- License: mit
- Created: 2021-11-13T17:07:14.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-23T23:12:27.000Z (over 2 years ago)
- Last Synced: 2025-10-25T08:11:14.013Z (3 months ago)
- Topics: calendars, date-converter, dates, datetime, times
- Language: TypeScript
- Homepage: https://farzinfweb.github.io/ferz
- Size: 190 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ferz
> Ferz is a library for working with dates, times and 10 different calendars in JavaScript.
## Table of contents
- [Ferz](#ferz)
- [Table of contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
- [Authors](#authors)
- [License](#license)
## Installation
**BEFORE YOU INSTALL:** please read the [prerequisites](#prerequisites)
To install and set up the library, run:
```sh
$ npm install -S ferz
```
Or if you prefer using Yarn:
```sh
$ yarn add --dev ferz
```
## Usage
To get the current date, you can use the **now** as below:
```
DateTime.now()
```
to get the date in a specific calendar, you can pass it as an argument
```
DateTime.now('persian')
```
To format the date, call **stringifyWith** with the format you need, for example:
```
DateTime.now().stringifyWith('yyyy-MM-dd')
```
will give you 2022-02-02
## Authors
* **Farzin Farzanehnia** - *Initial work* - [Farzin Farzanehnia](https://github.com/farzinfweb)
See also the list of [contributors](https://github.com/farzinfweb/ferz/contributors) who participated in this project.
## License
[MIT License](https://farzinfweb.mit-license.org/2019) © Farzin Farzanehnia