"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/I18n/Time.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

Time.php  (cakephp-4.0.1):Time.php  (cakephp-4.0.2)
skipping to change at line 233 skipping to change at line 233
/** /**
* Returns either a relative or a formatted absolute date depending * Returns either a relative or a formatted absolute date depending
* on the difference between the current time and this object. * on the difference between the current time and this object.
* *
* ### Options: * ### Options:
* *
* - `from` => another Time object representing the "now" time * - `from` => another Time object representing the "now" time
* - `format` => a fall back format if the relative time is longer than the duration specified by end * - `format` => a fall back format if the relative time is longer than the duration specified by end
* - `accuracy` => Specifies how accurate the date should be described (arra y) * - `accuracy` => Specifies how accurate the date should be described (arra y)
* * - year => The format if years > 0 (default "day")
* - year => The format if years > 0 (default "day") * - month => The format if months > 0 (default "day")
* - month => The format if months > 0 (default "day") * - week => The format if weeks > 0 (default "day")
* - week => The format if weeks > 0 (default "day") * - day => The format if weeks > 0 (default "hour")
* - day => The format if weeks > 0 (default "hour") * - hour => The format if hours > 0 (default "minute")
* - hour => The format if hours > 0 (default "minute") * - minute => The format if minutes > 0 (default "minute")
* - minute => The format if minutes > 0 (default "minute") * - second => The format if seconds > 0 (default "second")
* - second => The format if seconds > 0 (default "second")
*
* - `end` => The end of relative time telling * - `end` => The end of relative time telling
* - `relativeString` => The `printf` compatible string when outputting rela tive time * - `relativeString` => The `printf` compatible string when outputting rela tive time
* - `absoluteString` => The `printf` compatible string when outputting abso lute time * - `absoluteString` => The `printf` compatible string when outputting abso lute time
* - `timezone` => The user timezone the timestamp should be formatted in. * - `timezone` => The user timezone the timestamp should be formatted in.
* *
* Relative dates look something like this: * Relative dates look something like this:
* *
* - 3 weeks, 4 days ago * - 3 weeks, 4 days ago
* - 15 seconds ago * - 15 seconds ago
* *
 End of changes. 1 change blocks. 
9 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)