支持假期的日历库 [英] Calendar library supporting holidays

查看:196
本文介绍了支持假期的日历库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在日历本身中是否有任何支持假期(例如圣诞节)的库?

Are there any existing library that support holidays (e.g. Christmas) highlight in the calendar itself?

Google日历很好,但是我只想使用该库来显示日历,我实际上并不需要创建事件。

Google Calendar is fine, but I just want to use the library to display the calendar, I don't actually needed to create the events.

有什么想法吗?

推荐答案

您说假期的问题是您假设某个国家/地区/地理/宗教信仰。

Problem with you saying holidays is that you are assuming a certain country / geographical / religious affiliation.

您真正应该寻找的是一种使用某物标记某些日期的方法,因为最终这就是您所需要的。假期无非是标记为天数或与其他天数不同的日子。 Google通过使用供稿(您可以使用)来做到这一点。

What you should really be looking for is a way to mark certain dates with something, as ultimately that is what you need. Holidays mean nothing other than days marked off or showing different from another. Google does this by utilizing feeds (which you could use).

Mozilla还会保留假期列表:
http://www.mozilla.org/projects/calendar/holidays.html

Mozilla keeps a list of holidays as well: http://www.mozilla.org/projects/calendar/holidays.html

您将必须将该列表应用于您选择的日历(大多数支持日期/日期的更改,并且您将循环浏览假日列表,并将这些天/标记添加为特殊日期)。

You will have to apply the list to your chosen calendar (most support day / date changes, and you would loop through your holiday list and add those days / mark as special).

以下是 jQuery Datepicker Bank Holidays 的示例:
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/renderCalendarBankHolidays.html

希望可以帮助您入门。

这篇关于支持假期的日历库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆