From d59535c3175d1188baea460bd7772d41ea227b56 Mon Sep 17 00:00:00 2001 From: Brian Nesbitt Date: Mon, 10 Sep 2012 22:21:48 -0400 Subject: [PATCH] Add Packagist min stability setting and readme typo --- composer.json | 3 ++- readme.md | 2 +- readme.src.md | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 088e8f0b4..006547058 100644 --- a/composer.json +++ b/composer.json @@ -17,5 +17,6 @@ }, "autoload": { "psr-0": { "Carbon": "." } - } + }, + "minimum-stability": "dev" } \ No newline at end of file diff --git a/readme.md b/readme.md index 2ef612efd..c1eb100d0 100644 --- a/readme.md +++ b/readme.md @@ -447,7 +447,7 @@ For fun you can also pass negative values to `addXXX()`, in fact thats how `subX ### Difference -These functions always return the **toal difference** expressed in the specified time requested. This differs from the base class `diff()` function where an interval of 61 seconds would be returned as 1 minute and 1 second via a `DateInterval` instance. The `diffInMinutes()` function would simply return 1. All values are truncated and not rouned. Each function below has a default first parameter which is the Carbon instance to compare to, or null if you want to use `now()`. The 2nd parameter again is optional and indicates if you want the return value to be the absolute value or a relative value that might have a `-` (negative) sign if the passed in date is less than the current instance. This will default to true, return the absolute value. The comparisons are done in UTC. +These functions always return the **total difference** expressed in the specified time requested. This differs from the base class `diff()` function where an interval of 61 seconds would be returned as 1 minute and 1 second via a `DateInterval` instance. The `diffInMinutes()` function would simply return 1. All values are truncated and not rouned. Each function below has a default first parameter which is the Carbon instance to compare to, or null if you want to use `now()`. The 2nd parameter again is optional and indicates if you want the return value to be the absolute value or a relative value that might have a `-` (negative) sign if the passed in date is less than the current instance. This will default to true, return the absolute value. The comparisons are done in UTC. ```php // Carbon::diffInYears(Carbon $dt = null, $abs = true) diff --git a/readme.src.md b/readme.src.md index 3b1c0b11d..b7a216911 100644 --- a/readme.src.md +++ b/readme.src.md @@ -461,7 +461,7 @@ For fun you can also pass negative values to `addXXX()`, in fact thats how `subX ### Difference -These functions always return the **toal difference** expressed in the specified time requested. This differs from the base class `diff()` function where an interval of 61 seconds would be returned as 1 minute and 1 second via a `DateInterval` instance. The `diffInMinutes()` function would simply return 1. All values are truncated and not rouned. Each function below has a default first parameter which is the Carbon instance to compare to, or null if you want to use `now()`. The 2nd parameter again is optional and indicates if you want the return value to be the absolute value or a relative value that might have a `-` (negative) sign if the passed in date is less than the current instance. This will default to true, return the absolute value. The comparisons are done in UTC. +These functions always return the **total difference** expressed in the specified time requested. This differs from the base class `diff()` function where an interval of 61 seconds would be returned as 1 minute and 1 second via a `DateInterval` instance. The `diffInMinutes()` function would simply return 1. All values are truncated and not rouned. Each function below has a default first parameter which is the Carbon instance to compare to, or null if you want to use `now()`. The 2nd parameter again is optional and indicates if you want the return value to be the absolute value or a relative value that might have a `-` (negative) sign if the passed in date is less than the current instance. This will default to true, return the absolute value. The comparisons are done in UTC. ```php // Carbon::diffInYears(Carbon $dt = null, $abs = true)