current location: Home > download site > Library download > Other libraries > PHP small calendar class library
PHP small calendar class library
Classify: Library download / Other libraries | Release time: 2018-01-25 | visits: 14005 |
Download: 514 |
Latest Downloads
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
The most powerful brain 3
Odd Dust: Damila
Young Journey to the West 2
24 HoursReading Leaderboard
- 1 BEVM launches Bitcoin Layer 2 network Sats Chain! BRC-20 inscription SATS surged 23% after hearing the news
- 2 Export JSON to CSV: a note on CSV and Unicode
- 3 When will the Eggman Party Star Falling Back Decoration return?
- 4 How to take off Ning Hongye's blindfold in "Eternal Tribulation"
- 5 Fanless “passive” cooling, ASRock launches AMD Radeon RX 7900 Passive series graphics cards
- 6 How to obtain musical instruments in "Heartbeat Town"
- 7 Flashing to ChinaJoy2024, Huawei’s new gaming laptop is suspected to be named GT, and the unique LOGO light design is eye-catching
- 8 Apple is lost! For the first time, local Chinese brands occupy all the top 5 smartphones in Q2
- 9 How to buy seeds from Xindong Town How to buy seeds from Xindong Town
- 10 Japan’s bitFlyer completes acquisition of FTX Japan! Will host cryptocurrencies for institutional clients
- 11 How to get treasure chest 2 in Genshin Impact Fontaine and Crab
- 12 BIS releases cryptocurrency exchange platform currency report! Explain the factors affecting BNB price
- 13 AAVE Outshines Competitors with The Founder's New Proposal and Efficiency Boost
- 14 How to download "Plants vs. Zombies Fusion Edition"
- 15 Binance Completes Render (RNDR) Token Swap and Rebranding to Render (RENDER)
Latest Tutorials
-
- Go language practical GraphQL
- 1007 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 2406 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 982 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 1846 2024-03-29
<?php // file:calendar.class.php 日历类原文件 error_reporting(0); class Calendar{ private $year; private $month; private $start_weekday; //当月的第一天对应的是周几,作为当月开始遍历日期的开始 private $days; //当前月总天数 //构造方法,用来初使化一些日期属性 function __construct(){ //如果用户没有设置所份数,则使用当前系统时间的年份 $this->year = isset($_GET["year"]) ? $_GET["year"] : date("Y"); //如果用户没有设置月份数,则使用当前系统时间的月份 $this->month = isset($_GET["month"]) ? $_GET["month"] : date("m"); //通过具体的年份和月份,利用date()函数的w参数获取当月第一天对应的是周几 $this->start_weekday = date("w",mktime(0,0,0,$this->month,1,$this->year)); //通过具体的年份和月份,利用date()函数的t参数获取当月的天数 $this->days = date("t",mktime(0,0,0,$this->month,1,$this->year)); }
Calendar is a daily-use publication used to record dates and other related information. One that displays information for one day on each page is called a calendar, one that displays information for one month on each page is called a monthly calendar, and one that displays information for a whole year on each page is called an annual calendar. There are many forms, such as wall calendars, desk calendars, annual calendar cards, etc., and now there are electronic calendars.
China first had a calendar about four thousand years ago. According to a page of the oracle bone calendar in the oracle bone inscriptions, it is proved that the calendar of the Yin Dynasty has reached a considerable level. This page of the oracle bone calendar is the oldest physical almanac in all mankind. This page of the oracle bone calendar is also called a calendar.
![](/static/newDowns/images/images/book.png)