Smarty template format output UNIX timestamp

From , 5 Years ago, written in PHP, viewed 259 times.
URL https://pastebin.vip/view/7f141cf8
  1. <p>smarty模板输出:<br />    
  2.    
  3. <br />    
  4.    
  5. 输出数据库保存的时间戳:<{$time|date_format:'%Y-%m-%d %H:%M:%S'}>  
  6.  
  7. <br />    
  8.  
  9. 昨 天:<{$yesterday|date_format:'%Y-%m-%d %H:%M:%S'}>    
  10.    
  11. <br />    
  12.    
  13. 今天:<{$today|date_format:'%Y-%m-%d %H:%M:%S'}>    
  14.    
  15. <br />    
  16.    
  17. 明天:<{$tomorrow|date_format:'%Y-%m-%d %H:%M:%S'}>    
  18.    
  19. </p>    
  20.    
  21. <p>    
  22.    
  23. 昨天:<{$yesterday1|date_format:'%Y-%m-%d %H:%M:%S'}>    
  24.    
  25. <br />    
  26.    
  27. 今天:<{$today1|date_format:'%Y-%m-%d %H:%M:%S'}>    
  28.    
  29. <br />    
  30.    
  31. 明天:<{$tomorrow1|date_format:'%Y-%m-%d %H:%M:%S'}>    
  32.    
  33. </p>    
  34.    
  35. smarty保留变量输出:<{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}>    
  36.    

Reply to "Smarty template format output UNIX timestamp"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website