fix doc errors

This commit is contained in:
Loki3000 2018-03-15 18:20:44 +03:00 committed by GitHub
parent 00112bb4d5
commit 3e1fa19c70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,12 +8,12 @@ By default format is: `%b %e, %Y`.
```smarty ```smarty
{var $ts = time()} {var $ts = time()}
{$ts|date_format:"%Y/%m/%d %H:%M:%s"} outputs 2013/02/08 21:01:43 {$ts|date_format:"%Y/%m/%d %H:%M:%S"} outputs 2013/02/08 21:01:43
{$ts|date_format:"-1 day"} outputs 2013/02/07 21:01:43 {$ts|date_format:"-1 day"} outputs 2013/02/07 21:01:43
{var $date = "2008-12-08"} {var $date = "2008-12-08"}
{$ts|date_format:"%Y/%m/%d %H:%M:%s"} outputs 2008/12/08 00:00:00 {$ts|date_format:"%Y/%m/%d %H:%M:%S"} outputs 2008/12/08 00:00:00
``` ```
[Allowed quantificators](http://docs.php.net/strftime#refsect1-function.strftime-parameters) in **date_format** [Allowed quantificators](http://docs.php.net/strftime#refsect1-function.strftime-parameters) in **date_format**