"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/I18n/Date.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.

Date.php  (cakephp-4.0.1):Date.php  (cakephp-4.0.2)
skipping to change at line 146 skipping to change at line 146
/** /**
* 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 date and this object. * on the difference between the current date and this object.
* *
* ### Options: * ### Options:
* *
* - `from` => another Date object representing the "now" date * - `from` => another Date object representing the "now" date
* - `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 "day") * - day => The format if weeks > 0 (default "day")
* - `end` => The end of relative date telling * - `end` => The end of relative date telling
* - `relativeString` => The printf compatible string when outputting relati ve date * - `relativeString` => The printf compatible string when outputting relati ve date
* - `absoluteString` => The printf compatible string when outputting absolu te date * - `absoluteString` => The printf compatible string when outputting absolu te date
* - `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
* - 1 day ago * - 1 day ago
* *
 End of changes. 1 change blocks. 
4 lines changed or deleted 4 lines changed or added

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