DokuWiki

It's better when it's simple

User Tools

Site Tools


config:dformat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
config:dformat [2010-06-17 20:56] 60.240.108.159config:dformat [2019-04-19 16:54] (current) – Scattered format examples collected Michaelsy
Line 1: Line 1:
 ====== Configuration Setting: dformat ====== ====== Configuration Setting: dformat ======
  
-Configures how dates are formatted. This is directly passed to the [[phpfn>strftime]] PHP function. Some people may prefer to set it to ''%d.%m.%Y %H:%M''.+Configures how dates are formatted. This is directly passed to the [[phpfn>strftime]] PHP function.
  
   * Type : String   * Type : String
-  * Default : ''%d/%m/%Y %H:%M''+  * Default : ''%Y/%m/%d %H:%M'' 
 + 
 +There is one exception which doesn't follow the formatting rules of [[phpfn>strftime]]: You can use ''%f'' to show a **fuzzy date** (i.e. "''%Y/%m/%d %H:%M (%f)''" produces dates like this: "2009/09/16 10:36 (3 weeks ago)"
 + 
 +===== Format Examples===== 
 + 
 +  * ''%Y/%m/%d %H:%M'' => 2019/04/19 13:19 
 +  * ''%Y/%m/%d %H:%M (%f)'' => 2019/04/19 13:19 (3 weeks ago) 
 +  * ''%d.%m.%Y %H:%M'' => 19.04.2019 13:19
  
 ===== See also ===== ===== See also =====
config/dformat.1276800969.txt.gz · Last modified: 2010-06-17 20:56 by 60.240.108.159

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki