php / mysql:银行假日和圣诞节,复活节等活动的数据库 [英] php/mysql: database of bank holidays and events like christmas, easter etc

查看:134
本文介绍了php / mysql:银行假日和圣诞节,复活节等活动的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个简单的日历应用程序上工作,我希望在日历上显示上述事件[银行假期]。

Im working on a simple calendar application and i want to have the above events display on the calendar [bank holidays and that].

日历只是一个标准月视图,可以查看每个月的每一天的链接,以及查看下一个/上个月和一年等的链接。

The calendar is just a standard month view, with a link to view each day for each day in the month, and links to view next/ previous month and year etc...

我可能会存储的每个事件的mktime,如果今天== mktime然后显示在日历上[或类似的东西],但我可以从哪里获取这些日期?

i will probably have the mktime for each event stored, and if today == mktime then display it on the calendar [or something similar], but where can i get these dates from?

任何建议??

推荐答案

http://pear.php.net/package/Date_Holidays 支持计算多个国家,英国,美国,德国等国家的假日日期。
请参阅示例

http://pear.php.net/package/Date_Holidays has support for calculating holiday dates for a number of countries, inc UK, US, DE and others. see the example

这篇关于php / mysql:银行假日和圣诞节,复活节等活动的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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