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

查看:194
本文介绍了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天全站免登陆