mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Removed debug code, changed doc
This commit is contained in:
@ -457,7 +457,7 @@ class Formatter extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats the value as the time elapsed since then in human readable form.
|
* Formats the value as the time interval between a date and now in human readable form.
|
||||||
* @param integer|string|DateTime|DateInterval $value the value to be formatted. The following
|
* @param integer|string|DateTime|DateInterval $value the value to be formatted. The following
|
||||||
* types of value are supported:
|
* types of value are supported:
|
||||||
*
|
*
|
||||||
@ -503,8 +503,6 @@ class Formatter extends Component
|
|||||||
$dateThen->setTimestamp($timestamp);
|
$dateThen->setTimestamp($timestamp);
|
||||||
|
|
||||||
$interval = $dateThen->diff($dateNow);
|
$interval = $dateThen->diff($dateNow);
|
||||||
var_dump($dateThen);
|
|
||||||
var_dump($dateNow);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user