php/mysql:银行假日和圣诞节、复活节等事件的数据库

时间:2022-11-30 12:00:48

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...

日历只是一个标准的月视图,每个月的每一天都有一个链接,并且链接到下一个/前一个月和年等等。

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?

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

Any suggestions ??

有什么建议吗? ?

1 个解决方案

#1


5  

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

http://pear.php.net/package/Date_Holidays支持计算许多国家的假日日期,包括UK、US、DE和其他国家。看这个例子

#1


5  

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

http://pear.php.net/package/Date_Holidays支持计算许多国家的假日日期,包括UK、US、DE和其他国家。看这个例子