Skip to content
Permalink
Browse files

Specify type hint

Plus fix two typos.
  • Loading branch information...
ravage84 committed Oct 27, 2015
1 parent d220616 commit 58316b3a582662b37987d8e68553cf2d17388b7b
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/View/Helper/TimeHelper.php
@@ -34,7 +34,7 @@ class TimeHelper extends AppHelper {
/**
* CakeTime instance
*
* @var stdClass
* @var CakeTime
*/
protected $_engine = null;
@@ -193,7 +193,7 @@ public function nice($dateString = null, $timezone = null, $format = null) {
/**
* Returns a formatted descriptive date string for given datetime string.
*
* @param int|string|DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime objectp
* @param int|string|DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object.
* @param string|DateTimeZone $timezone User's timezone string or DateTimeZone object
* @return string Described, relative date string
* @see CakeTime::niceShort()
@@ -465,7 +465,7 @@ public function gmt($string = null) {
* ```
* $this->Time->format('2012-02-15', '%m-%d-%Y'); // returns 02-15-2012
* $this->Time->format('2012-02-15 23:01:01', '%c'); // returns preferred date and time based on configured locale
* $this->Time->format('0000-00-00', '%d-%m-%Y', 'N/A'); // return N/A becuase an invalid date was passed
* $this->Time->format('0000-00-00', '%d-%m-%Y', 'N/A'); // return N/A because an invalid date was passed
* $this->Time->format('2012-02-15 23:01:01', '%c', 'N/A', 'America/New_York'); // converts passed date to timezone
* ```
*

0 comments on commit 58316b3

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