【文件属性】:
文件名称:PHP时间类完整实例(非常实用)
文件大小:38KB
文件格式:PDF
更新时间:2020-12-18 19:45:28
本文实例讲述了PHP时间类。分享给大家供大家参考,具体如下:
<?php
header("Content-type:text/html;Charset=utf-8");
class time{
private $year;//年
private $month;//月
private $day;//天
private $hour;//小时
private $minute;//分钟
private $second;//秒
private $microtime;//毫秒
private $weekday;//星期
private $longDate;//完整的时间格式
priv