diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-01-29 06:48:23 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-02-13 08:23:10 +0300 |
commit | 8ef47c8e4a3fb0094b4b0c19df8ed18c58cf7a6f (patch) | |
tree | 162315afc7f5a5bc0c8840eff30251a76b665b6f /core/Date.php | |
parent | ec8dc0f150d71b752188dac3d01d29950ae6f869 (diff) |
refs #4633 open segmented visitor log with one click on a row
Diffstat (limited to 'core/Date.php')
-rw-r--r-- | core/Date.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/Date.php b/core/Date.php index 909f7adb0e..63c6384729 100644 --- a/core/Date.php +++ b/core/Date.php @@ -627,6 +627,14 @@ class Date return $out; } + public function getHourInUTC() + { + $dateTime = $this->getDatetime(); + $hourInTz = Date::factory($dateTime, 'UTC')->toString('G'); + + return $hourInTz; + } + /** * Adds `$n` days to `$this` date and returns the result in a new Date. * instance. |