Skip to content

Latest commit

 

History

History
9 lines (9 loc) · 440 Bytes

README.md

File metadata and controls

9 lines (9 loc) · 440 Bytes

php原生的日历(仿照shell-cal)

运用构造函数 ####1.建立当前月份的日历,前后的月份运用DateTime::modify递归调用 ####2.当前月份的范围通过DatePeriod确定 ####3.通过createFromFormat将当前的月份和年传入 ####4.通过format函数确定当前的星期,日期 ####5.通过数组存储当前的日期,星期


text方法可以在shell显示,html则为网页中显示的日历