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
config:dformat [2011-04-13 23:36] – added info about fuzzy date achconfig: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
Line 7: Line 7:
  
 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)". 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.1302730567.txt.gz · Last modified: 2011-04-13 23:36 by ach

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