X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FDateTimeFormat.php;h=a1eb749948fcea4ea8047923942411a43dd71b5d;hb=51ebb1541a62c0fd691d995326d61775cc7d61d3;hp=1725a0e02dcdebe52fd413e4e424138e38947a17;hpb=831fff0f5c4497ccb14a9e1cb3299136f5682a3d;p=friendica.git diff --git a/src/Util/DateTimeFormat.php b/src/Util/DateTimeFormat.php index 1725a0e02d..a1eb749948 100644 --- a/src/Util/DateTimeFormat.php +++ b/src/Util/DateTimeFormat.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Util; @@ -12,13 +27,14 @@ use DateTimeZone; use Exception; /** - * @brief Temporal class + * Temporal class */ class DateTimeFormat { - const ATOM = 'Y-m-d\TH:i:s\Z'; + const ATOM = 'Y-m-d\TH:i:s\Z'; const MYSQL = 'Y-m-d H:i:s'; - const HTTP = 'D, d M Y H:i:s \G\M\T'; + const HTTP = 'D, d M Y H:i:s \G\M\T'; + const JSON = 'Y-m-d\TH:i:s.v\Z'; /** * convert() shorthand for UTC. @@ -84,7 +100,7 @@ class DateTimeFormat } /** - * @brief General purpose date parse/convert/format function. + * General purpose date parse/convert/format function. * * @param string $s Some parseable date/time string * @param string $tz_to Destination timezone