时间代码

WordPress | 2007-8-29 星期三 11:37   修改@2007-8-29 14:05 | 评论↓

다운로드

频繁尝鲜换模板,总是忘掉时间格式,每次都要重新寻找。干脆记录一下,做个备忘。

http://codex.wordpress.org/Formatting_Date_and_Time

For example, the format string:

l, F j, Y

creates a date that look like this:

Friday, September 24, 2004

Here is what each format character in the string above represents:

* l = Full name for day of the week (lower-case L) 다운로드.
* F = Full name for the month.
* j = The day of the month.
* Y = The year in 4 digits 다운로드. (lower-case y gives the year’s last 2 digits)



2 Responses to “时间代码”

  1. 1
    偶爱偶家
    2007-8-30- 星期四 14:26    @reply     

    这个可以去看php手册吧? 好像就是从php手册中来的

  2. 2
    asiapan
    2007-8-30- 星期四 18:07    @reply     

    你说的没错。不过我对php一窍不通,现在使用都是知其然不知其所以然的。

Leave a Comment

Tags allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

提示/Tips可使用Ctrl+Enter快速提交留言出口成脏一律垃圾处理。

blank
Warning: Unknown: Failed to write session data (memcached). Please verify that the current setting of session.save_path is correct (127.0.0.1:11211) in Unknown on line 0