All Projects → shkarimpour → pholiday

shkarimpour / pholiday

Licence: MIT license
a persian calendar holidays library for javascript

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to pholiday

Begiresh
Smart Android App Banner for Persian Markets
Stars: ✭ 28 (-26.32%)
Mutual labels:  persian, iran
shamsi date
A Flutter and Dart package for using Jalali (Shamsi, Solar, Persian or Jalaali) calendar. You can convert, format and manipulate Jalali and Gregorian (Miladi) date and times.
Stars: ✭ 59 (+55.26%)
Mutual labels:  persian, jalaali
prisoners
حبس از دید اعداد واقعی - Persian translation for "Incarceration in real numbers"
Stars: ✭ 22 (-42.11%)
Mutual labels:  persian, iran
PersianDataAnnotations
PersianDataAnnotations is ASP.NET Core MVC & ASP.NET MVC Custom Localization DataAnnotations (Localized MVC Errors) for Persian(Farsi) language - فارسی سازی خطاهای اعتبارسنجی توکار ام.وی.سی. و کور.ام.وی.سی. برای نمایش اعتبار سنجی سمت کلاینت
Stars: ✭ 38 (+0%)
Mutual labels:  persian, iran
persian-tools-rs
An anthology of a variety of tools for the Persian language in Rust
Stars: ✭ 17 (-55.26%)
Mutual labels:  persian, iran
bash-mardom-azar
بشِ مردم آزار!
Stars: ✭ 19 (-50%)
Mutual labels:  persian, iran
matnbaz
📚 The source-code for matnbaz.net. A monorepo containing the back-end (NestJS/Prisma/Apollo), front-end (Next.js/Apollo) and some tooling.
Stars: ✭ 481 (+1165.79%)
Mutual labels:  persian, iran
moment-holiday
A Moment.js plugin for handling holidays. NO LONGER MAINTAINED (DEPRECATED)
Stars: ✭ 82 (+115.79%)
Mutual labels:  moment, holiday
DNTPersianComponents.Blazor
A collection of Persian components for Blazor
Stars: ✭ 27 (-28.95%)
Mutual labels:  persian, iran
PersianTools.Core
Persian Tools for .Net and .Net Core
Stars: ✭ 25 (-34.21%)
Mutual labels:  persian, iran
imrc-datetime-picker
(Improved) React component datetime picker by momentjs 📆
Stars: ✭ 21 (-44.74%)
Mutual labels:  moment, jalaali
iranian-calendar-events
Fetch Iranian calendar events (Jalali, Hijri and Gregorian) from time.ir website
Stars: ✭ 28 (-26.32%)
Mutual labels:  events, persian
EasyEventEditor
Drop in replacement for the default Unity event editor drawer that allows listener reordering
Stars: ✭ 103 (+171.05%)
Mutual labels:  events
moment-js
A Polymer element to parse, validate, manipulate, and display dates using Moment.js.
Stars: ✭ 15 (-60.53%)
Mutual labels:  moment
ng2-events
Supercharge your Angular2+ event handling
Stars: ✭ 17 (-55.26%)
Mutual labels:  events
public-holidays-js
Public holidays by country. Readonly from google calendar. Nodejs module.
Stars: ✭ 18 (-52.63%)
Mutual labels:  holiday
Timespace
A jQuery plugin to handle displaying of time events
Stars: ✭ 27 (-28.95%)
Mutual labels:  events
EventEmitter
Simple EventEmitter with multiple listeners
Stars: ✭ 19 (-50%)
Mutual labels:  events
evon
Fast and versatile event dispatcher code generator for Golang
Stars: ✭ 15 (-60.53%)
Mutual labels:  events
UnityEventAggregator
Simple event aggregation for Unity3D.
Stars: ✭ 30 (-21.05%)
Mutual labels:  events

pholiday

A persian calendar holidays library for javascript based on moment-jalaali.

Online demo and Working api

pholiday api

installation

You can use this library in envs like nodejs, webpack and browserify.

$ npm install pholiday

Library is based on moment-jalaali so it has all methods moment and moment-jalaali has.

library specific methods

.isHoliday()

Check the selected date is holiday in Iran or not.

const pholiday = require('pholiday')
pholiday().isHoliday()
pholiday('1391/12/29', 'jYYYY/jMM/jDD').isHoliday() -> true
pholiday('2013-8-25 16:40:00', 'YYYY-M-D HH:mm:ss').endOf('jMonth').isHoliday() -> false

.events()

Get the selected dates events in Iran calendar.

const pholiday = require('pholiday')
pholiday().events()
pholiday('2013-8-25 16:40:00', 'YYYY-M-D HH:mm:ss').endOf('jMonth').events()
-> [ { isHoliday: false,
    event: 'گاهنبار پَتیَه‌شَهیم، جشن پایان تابستان' } ]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].