Comparing version 0.1.1 to 0.1.2
const pholiday = require('./index') | ||
const date = pholiday().add(4, 'days') | ||
const date = pholiday('2013-8-25 16:40:00', 'YYYY-M-D HH:mm:ss').endOf('jMonth') | ||
const momentHijri = require('moment-hijri') | ||
console.log(date.isHoliday()) | ||
console.log(date.events()) |
{ | ||
"name": "pholiday", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "a persian calendar holidays library for javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,2 +18,4 @@ # 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 | ||
``` | ||
@@ -26,2 +28,5 @@ | ||
pholiday().events() | ||
pholiday('2013-8-25 16:40:00', 'YYYY-M-D HH:mm:ss').endOf('jMonth').events() | ||
-> [ { isHoliday: false, | ||
event: 'گاهنبار پَتیَهشَهیم، جشن پایان تابستان' } ] | ||
``` |
19299
30