{"id":435,"date":"2015-01-14T23:08:32","date_gmt":"2015-01-14T15:08:32","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=435"},"modified":"2020-05-21T23:34:49","modified_gmt":"2020-05-21T15:34:49","slug":"dedecms%e6%97%b6%e9%97%b4%e6%a0%87%e7%ad%be%e8%b0%83%e7%94%a8%e6%a0%b7%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/435.html","title":{"rendered":"dedecms\u65f6\u95f4\u6807\u7b7e\u8c03\u7528\u6837\u5f0f"},"content":{"rendered":"

dedecms\u9996\u9875\u65f6\u95f4\u6807\u7b7e\uff1a<\/h2>\n

May 15, 2009 \u6837\u5f0f<\/p>\n

[field:pubdate function='strftime(\"%m-%d\",@me)'\/]<\/code><\/pre>\n

12-17<\/p>\n

[field:pubdate function='strftime(\"%m-%d\",@me)'\/]<\/code><\/pre>\n

dedecms\u5217\u8868\u9875\u65f6\u95f4\u6807\u7b7e:<\/h2>\n

2009-12-27 18:30:02 \u6837\u5f0f<\/p>\n

[field:pubdate function=\"GetDateTimeMK(@me)\"\/]<\/code><\/pre>\n

2009-12-27 \u6837\u5f0f<\/p>\n

[field:pubdate function=\"GetDateMK(@me)\"\/]<\/code><\/pre>\n

12-27<\/p>\n

[field:pubdate function='strftime(\"%m-%d\",@me)'\/]<\/code><\/pre>\n

2009<\/p>\n

[field:pubdate function='strftime(\"%Y\",@me)'\/]<\/code><\/pre>\n

 <\/p>\n

dedecms\u5185\u5bb9\u9875\u65f6\u95f4\u6807\u7b7e:<\/h2>\n

2009-12-27 \u6837\u5f0f<\/p>\n

{dede:field name='pubdate' function='GetDateMk(@me)'\/}<\/code><\/pre>\n

May 15, 2009 \u6837\u5f0f<\/p>\n

{dede:field name='pubdate' function='strftime(\"%b %d, %Y\",@me)'\/}<\/code><\/pre>\n

24\u5c0f\u65f6\u5185\u7684\u65f6\u95f4\u663e\u793a\u7ea2\u8272\uff1a<\/p>\n

[field:pubdate runphp='yes']\r\n$a=\"\";\";\r\n$b=\"\r\n$c=strftime(\"%Y\u5e74%m\u6708%d\u65e5 %H:%M:%S\",\"@me\");\r\n$ntime = time();\r\n$oneday = 3600 * 24;\r\nif(($ntime - @me)<$oneday) @me = $a.$c.$b;\r\nelse @me =$c;\r\n[\/field:pubdate]<\/code><\/pre>\n

\u6700\u540e\u66f4\u65b0\u65f6\u95f4<\/p>\n

{dede:tagname runphp='yes'}@me = date(\"Y-m-d H:i:s\", time());{\/dede:tagname}<\/code><\/pre>\n

XX\u5929\u524d<\/p>\n

[field:pubdate runphp='yes']\r\n$today = Floor(time()\/(3600 * 24));\r\n$senday= Floor(@me\/(3600 * 24));\r\n$updays = $today-$senday;\r\nif($updays==0) @me = \"\u4eca\u65e5\";\r\nelse @me = $updays.\"\u5929\u524d\";\r\n[\/field:pubdate]<\/code><\/pre>\n
\u5229\u7528strftime()\u51fd\u6570\u5c06\u65f6\u95f4\u683c\u5f0f\u5316:<\/div>\n
%a \u661f\u671f\u51e0\u7684\u7b80\u5199<\/div>\n
%A \u661f\u671f\u51e0\u7684\u5168\u79f0<\/div>\n
%b \u6708\u5206\u7684\u7b80\u5199<\/div>\n
%B \u6708\u4efd\u7684\u5168\u79f0<\/div>\n
%c \u6807\u51c6\u7684\u65e5\u671f\u7684\u65f6\u95f4\u4e32<\/div>\n
%C \u5e74\u4efd\u7684\u540e\u4e24\u4f4d\u6570\u5b57<\/div>\n
%d \u5341\u8fdb\u5236\u8868\u793a\u7684\u6bcf\u6708\u7684\u7b2c\u51e0\u5929<\/div>\n
%D \u6708\/\u5929\/\u5e74<\/div>\n
%e \u5728\u4e24\u5b57\u7b26\u57df\u4e2d\uff0c\u5341\u8fdb\u5236\u8868\u793a\u7684\u6bcf\u6708\u7684\u7b2c\u51e0\u5929<\/div>\n
%F \u5e74-\u6708-\u65e5<\/div>\n
%g \u5e74\u4efd\u7684\u540e\u4e24\u4f4d\u6570\u5b57\uff0c\u4f7f\u7528\u57fa\u4e8e\u5468\u7684\u5e74<\/div>\n
%G \u5e74\u5206\uff0c\u4f7f\u7528\u57fa\u4e8e\u5468\u7684\u5e74<\/div>\n
%h \u7b80\u5199\u7684\u6708\u4efd\u540d<\/div>\n
%H 24\u5c0f\u65f6\u5236\u7684\u5c0f\u65f6<\/div>\n
%I 12\u5c0f\u65f6\u5236\u7684\u5c0f\u65f6<\/div>\n
%j \u5341\u8fdb\u5236\u8868\u793a\u7684\u6bcf\u5e74\u7684\u7b2c\u51e0\u5929<\/div>\n
%m \u5341\u8fdb\u5236\u8868\u793a\u7684\u6708\u4efd<\/div>\n
%M \u5341\u65f6\u5236\u8868\u793a\u7684\u5206\u949f\u6570<\/div>\n
%n \u65b0\u884c\u7b26<\/div>\n
%p \u672c\u5730\u7684AM\u6216PM\u7684\u7b49\u4ef7\u663e\u793a<\/div>\n
%r 12\u5c0f\u65f6\u7684\u65f6\u95f4<\/div>\n
%R \u663e\u793a\u5c0f\u65f6\u548c\u5206\u949f\uff1ahh:mm<\/div>\n
%S \u5341\u8fdb\u5236\u7684\u79d2\u6570<\/div>\n
%t \u6c34\u5e73\u5236\u8868\u7b26<\/div>\n
%T \u663e\u793a\u65f6\u5206\u79d2\uff1ahh:mm:ss<\/div>\n
%u \u6bcf\u5468\u7684\u7b2c\u51e0\u5929\uff0c\u661f\u671f\u4e00\u4e3a\u7b2c\u4e00\u5929 (\u503c\u4ece0\u52306\uff0c\u661f\u671f\u4e00\u4e3a0)<\/div>\n
%U \u7b2c\u5e74\u7684\u7b2c\u51e0\u5468\uff0c\u628a\u661f\u671f\u65e5\u505a\u4e3a\u7b2c\u4e00\u5929(\u503c\u4ece0\u523053)<\/div>\n
%V \u6bcf\u5e74\u7684\u7b2c\u51e0\u5468\uff0c\u4f7f\u7528\u57fa\u4e8e\u5468\u7684\u5e74<\/div>\n
%w \u5341\u8fdb\u5236\u8868\u793a\u7684\u661f\u671f\u51e0(\u503c\u4ece0\u52306\uff0c\u661f\u671f\u5929\u4e3a0)<\/div>\n
%W \u6bcf\u5e74\u7684\u7b2c\u51e0\u5468\uff0c\u628a\u661f\u671f\u4e00\u505a\u4e3a\u7b2c\u4e00\u5929(\u503c\u4ece0\u523053)<\/div>\n
%x \u6807\u51c6\u7684\u65e5\u671f\u4e32<\/div>\n
%X \u6807\u51c6\u7684\u65f6\u95f4\u4e32<\/div>\n
%y \u4e0d\u5e26\u4e16\u7eaa\u7684\u5341\u8fdb\u5236\u5e74\u4efd(\u503c\u4ece0\u523099)<\/div>\n
%Y \u5e26\u4e16\u7eaa\u90e8\u5206\u7684\u5341\u5236\u5e74\u4efd<\/div>\n
%z\uff0c%Z \u65f6\u533a\u540d\u79f0\uff0c\u5982\u679c\u4e0d\u80fd\u5f97\u5230\u65f6\u533a\u540d\u79f0\u5219\u8fd4\u56de\u7a7a\u5b57\u7b26\u3002<\/div>\n","protected":false},"excerpt":{"rendered":"

dedecms\u9996\u9875\u65f6\u95f4\u6807\u7b7e\uff1a May 15, 2009 \u6837\u5f0f [field:pubdate function= […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,671,419],"class_list":["post-435","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-671","tag-419"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/435\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}