Skip to content
Permalink
Browse files

Adjust the doc blocks instead.

  • Loading branch information...
dereuromark committed Dec 22, 2016
1 parent 2312ab8 commit d42104a8243bdb2c475afea1ef8a433022ec9b40
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/View/Helper/TimeHelper.php
@@ -200,12 +200,12 @@ public function toQuarter($dateString, $range = false)
*
* @param int|string|\DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object
* @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
* @return int Unix timestamp
* @return string UNIX timestamp
* @see \Cake\I18n\Time::toUnix()
*/
public function toUnix($dateString, $timezone = null)
{
return (int)(new Time($dateString, $timezone))->toUnixString();
return (new Time($dateString, $timezone))->toUnixString();
}
/**
@@ -329,12 +329,12 @@ public function isWithinNext($timeInterval, $dateString, $timezone = null)
* Returns gmt as a UNIX timestamp.
*
* @param int|string|\DateTime|null $string UNIX timestamp, strtotime() valid string or DateTime object
* @return int UNIX timestamp
* @return string UNIX timestamp
* @see \Cake\I18n\Time::gmt()
*/
public function gmt($string = null)
{
return (int)(new Time($string))->toUnixString();
return (new Time($string))->toUnixString();
}
/**

0 comments on commit d42104a

Please sign in to comment.
You can’t perform that action at this time.