diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-12-04 05:04:02 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-12-04 05:04:02 +0300 |
commit | 9d71fc8e92e5b434fd69c7ab4b83a69169064cf3 (patch) | |
tree | 8cb2798746e4defb1a978cd758df72006ec419ae /core/Date.php | |
parent | 784b738f9c4a92c42a9d8e6b85c28a82a3af0a2f (diff) |
Tracker refactoring
Diffstat (limited to 'core/Date.php')
-rw-r--r-- | core/Date.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Date.php b/core/Date.php index 5b8e0fab6e..abc43c6971 100644 --- a/core/Date.php +++ b/core/Date.php @@ -243,6 +243,17 @@ class Date } /** + * Returns the date in the "Y-m-d H:i:s" PHP format + * + * @param int $timestamp + * @return string + */ + public static function getDatetimeFromTimestamp($timestamp) + { + return date("Y-m-d H:i:s", $timestamp); + } + + /** * Returns the Unix timestamp of the date in UTC. * * @return int |