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: 14336 |
Download: 516 |
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 How to Populate an HTML Dropdown List with Data from a MySQL Database?
- 2 dvwssr.dll - What is dvwssr.dll?
- 3 How to Concatenate C Strings on a Single Line?
- 4 How Can We Handle Idle MySQL Connections?
- 5 How to Handle Authentication Cookies for HTTP Requests in Go?
- 6 What is cloud mining?
- 7 How to Troubleshoot "Can't Connect to MySQL Server" Errors When Connecting Remotely via Command Line? .
- 8 Why Can't I Update a Table Inside a Trigger That's Modifying the Same Table in MySQL?
- 9 How to Extract Multi-Line Text from HTML with JavaScript Regex?
- 10 Python Functions and Modules: Writing Reusable Code Like a Pro
- 11 Block Mayhem codes for November 2024
- 12 How Can C Programmers Develop Powerful Browser Plugins with NPAPI?
- 13 How can I run my Go application with administrator privileges without manual UAC elevation?
- 14 Can I Use XPath with BeautifulSoup?
- 15 How to Convert Integers to Strings in PHP: Which Method Is Best?
Latest Tutorials
-
- Go language practical GraphQL
- 1996 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3413 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 1798 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2613 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.