我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Smarty日期格式?

I am building an rss feed.

I need to output a date, I am passing though a date that the date_format function can understand, but I am not sure how to format the date so it fits with the RFC 822 standard.

I need to output a date like this: Tue, 10 Jun 2003 09:41:01 GMT

What format should I use, or is there another modifier?

From the PHP docs for DateTime:

const string RFC822 = "D, d M y H:i:s O" ;

The corresponding Smarty string should be "%a, %d %b %Y %H:%M:%S %z".

近期文章

  • 读得好错误?
  • 如何让php打开一个页面?
  • mod_rewrite和尾部斜杠
  • 替换php读取的文件中的变量
  • 用PHP和C语言增加运算符[重复]
  • 如何在PHPUnit中验证此函数是否为字符串?
  • 是否有可能从Java Applet获取数据到PHP或MySQL?
  • 通过PHP连接Ftp
  • 表格不起作用
  • 在jquery JSON php中获取{object Object}
  • 糖CRM的整合方法
  • 在PHP中使用布尔运算
  • 如何使用带保留字的日期功能?
  • 在.htm扩展文件上处理PHP代码? [重复]
  • 如何从电子邮件表单“从”字段中删除服务器?
  • 使用PHP创建Windows媒体播放器播放列表
  • 怎么获取当前标签的值
  • unity如何实现游戏中的蹲起嘲讽
  • 编译器提示 ios sflags 未声明,可是我已经写过 #include <iomanip>了 .书上没找到原因.
  • c++编程排序问题,不知道错在哪无法正常排序,无显示。

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华