It's better when it's simple

User Tools

Site Tools


Configuration Setting: dformat

Configures how dates are formatted. This is directly passed to the strftime PHP function.

  • Type : String
  • Default : %Y/%m/%d %H:%M

There is one exception which doesn't follow the formatting rules of 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

config/dformat.txt · Last modified: 2019-04-19 16:54 by Michaelsy

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