PHP Date/Time


Date/Time鍑芥暟鍒楄〃,checkdate - 楠岃瘉涓涓牸閲岄珮閲屾棩鏈

Date/Time鍑芥暟鍒楄〃
checkdate - 楠岃瘉涓涓牸閲岄珮閲屾棩鏈
date - 鏍煎紡鍖栦竴涓湰鍦版椂闂达紡鏃ユ湡
date_add - 鍒悕 DateTime::add
date_create - 鍒悕 DateTime::__construct
date_create_from_format - 鍒悕 DateTime::createFromFormat
date_date_set - 鍒悕 DateTime::setDate
date_default_timezone_get - 鍙栧緱涓涓剼鏈腑鎵鏈夋棩鏈熸椂闂村嚱鏁版墍浣跨敤鐨勯粯璁ゆ椂鍖
date_default_timezone_set - 璁惧畾鐢ㄤ簬涓涓剼鏈腑鎵鏈夋棩鏈熸椂闂村嚱鏁扮殑榛樿鏃跺尯
date_diff - 鍒悕 DateTime::diff
date_format - 鍒悕 DateTime::format
date_get_last_errors - 鍒悕 DateTime::getLastErrors
date_interval_create_from_date_string - 鍒悕 DateInterval::createFromDateString
date_interval_format - 鍒悕 DateInterval::format
date_isodate_set - 鍒悕 DateTime::setISODate
date_modify - 鍒悕 DateTime::modify
date_offset_get - 鍒悕 DateTime::getOffset
date_parse - Returns associative array with detailed info about given date
date_parse_from_format - Get info about given date formatted according to the specified format
date_sub - 鍒悕 DateTime::sub
date_sunrise - 杩斿洖缁欏畾鐨勬棩鏈熶笌鍦扮偣鐨勬棩鍑烘椂闂
date_sunset - 杩斿洖缁欏畾鐨勬棩鏈熶笌鍦扮偣鐨勬棩钀芥椂闂
date_sun_info - Returns an array with information about sunset/sunrise and twilight begin/end
date_timestamp_get - 鍒悕 DateTime::getTimestamp
date_timestamp_set - 鍒悕 DateTime::setTimestamp
date_timezone_get - 鍒悕 DateTime::getTimezone
date_timezone_set - 鍒悕 DateTime::setTimezone
date_time_set - 鍒悕 DateTime::setTime
getdate - 鍙栧緱鏃ユ湡锛忔椂闂翠俊鎭
gettimeofday - 鍙栧緱褰撳墠鏃堕棿
gmdate - 鏍煎紡鍖栦竴涓 GMT/UTC 鏃ユ湡锛忔椂闂
gmmktime - 鍙栧緱 GMT 鏃ユ湡鐨 UNIX 鏃堕棿鎴
gmstrftime - 鏍规嵁鍖哄煙璁剧疆鏍煎紡鍖 GMT/UTC 鏃堕棿锛忔棩鏈
idate - 灏嗘湰鍦版椂闂存棩鏈熸牸寮忓寲涓烘暣鏁
localtime - 鍙栧緱鏈湴鏃堕棿
microtime - 杩斿洖褰撳墠 Unix 鏃堕棿鎴冲拰寰鏁
mktime - 鍙栧緱涓涓棩鏈熺殑 Unix 鏃堕棿鎴
strftime - 鏍规嵁鍖哄煙璁剧疆鏍煎紡鍖栨湰鍦版椂闂达紡鏃ユ湡
strptime - 瑙f瀽鐢 strftime 鐢熸垚鐨勬棩鏈燂紡鏃堕棿
strtotime - 灏嗕换浣曡嫳鏂囨枃鏈殑鏃ユ湡鏃堕棿鎻忚堪瑙f瀽涓 Unix 鏃堕棿鎴
time - 杩斿洖褰撳墠鐨 Unix 鏃堕棿鎴
timezone_abbreviations_list - 鍒悕 DateTimeZone::listAbbreviations
timezone_identifiers_list - 鍒悕 DateTimeZone::listIdentifiers
timezone_location_get - 鍒悕 DateTimeZone::getLocation
timezone_name_from_abbr - Returns the timezone name from abbreviation
timezone_name_get - 鍒悕 DateTimeZone::getName
timezone_offset_get - 鍒悕 DateTimeZone::getOffset
timezone_open - 鍒悕 DateTimeZone::__construct
timezone_transitions_get - 鍒悕 DateTimeZone::getTransitions
timezone_version_get - Gets the version of the timezonedb

浠ヤ笂灏辨槸PHP Date/Time鍑芥暟鍒楄〃鐨勮缁嗗唴瀹癸紝鏇村淇℃伅璇峰叧娉∣D浜戝叾瀹冪浉鍏虫枃绔狅紒



鏈枃URL锛http://www.odweb.cn/news_show.html?id=114