在页面的最前页加上
date_default_timezone_set(PRC); /*把时间调到北京时间,php5默认为格林威治标准时间*/
date ()a: "am"或是"pm"
PHP date()参数A: "AM"或是"PM"
d: 几日,两位数字,若不足则补零;从"01"至"31"
D: 星期几,3个英文字母,如:"Fri"
F: 月份,英文全名,如:"January"
PHP date()参数h: 12小时制的小时,从"01"至"12"
H: 24小时制的小时,从"00"至"23"
g: 12小时制的小时,不补零;从"1"至"12"
G: 24小时制的小时,不补零;从"0"至"23"
j: 几日,不足不被零;从"1"至"31"
l: 星期几,英文全名,如:"Friday"
m: 月份,两位数字,从"01"至"12"
n: 月份,两位数字,不补零;从"1"至"12"
M: 月份,3个英文字母;如:"Jan"
s: 秒;从"00"至"59"
PHP date()参数S: 字尾加英文序数,两个英文字母,如:"21th"
t: 指定月份的天数,从"28"至"31"
U: 总秒数
w: 数字型的星期几,从"0(星期天)"至"6(星期六)"
Y: 年,四位数字
y: 年,两位数字
PHP date()参数z: 一年中的第几天;从"1"至"366"

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Linux new version
SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software
