From 5df97d55fd9b9b630c71c01050ff8901ca4085ef Mon Sep 17 00:00:00 2001 From: Brian Nesbitt Date: Sun, 14 Oct 2012 20:41:18 -0400 Subject: [PATCH] Updated history file and added history section to readme --- Carbon/Tests/NowAndOtherStaticHelpersTest.php | 1 - history.md | 9 ++++++--- readme.md | 10 ++++++++-- readme.src.md | 6 ++++++ 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/Carbon/Tests/NowAndOtherStaticHelpersTest.php b/Carbon/Tests/NowAndOtherStaticHelpersTest.php index 76180d393d..84c44d4e6b 100644 --- a/Carbon/Tests/NowAndOtherStaticHelpersTest.php +++ b/Carbon/Tests/NowAndOtherStaticHelpersTest.php @@ -64,5 +64,4 @@ public function testYesterdayWithTimezone() $dt2 = new \DateTime('yesterday', new \DateTimeZone('Europe/London')); $this->assertSame($dt2->format('Y-m-d 00:00:00'), $dt->toDateTimeString()); } - } diff --git a/history.md b/history.md index b8b69bd91d..d63b5ace6d 100644 --- a/history.md +++ b/history.md @@ -1,8 +1,11 @@ -X.X / not released +1.2.0 / 2012-10-14 ================== - * added history.md - + * Added history.md + * Implemented __isset() (thanks @flevour) + * Simplified tomorrow()/yesterday() to rely on today()... more DRY + * Simplified __set() and fixed exception text + * Updated readme 1.1.0 / 2012-09-16 ================== diff --git a/readme.md b/readme.md index 0f01474ed7..2ef2dd3f45 100644 --- a/readme.md +++ b/readme.md @@ -61,6 +61,7 @@ $daysSinceEpoch = Carbon::createFromTimeStamp(0)->diffInDays(); * [Contributing](#about-contributing) * [Author](#about-author) * [License](#about-license) + * [History](#about-history) * [Why the name Carbon?](#about-whyname) @@ -162,11 +163,11 @@ To accompany `now()`, a few other static instantiation helpers exist to create w ```php $now = Carbon::now(); -echo $now; // 2012-10-14 15:36:24 +echo $now; // 2012-10-14 20:40:20 $today = Carbon::today(); echo $today; // 2012-10-14 00:00:00 $tomorrow = Carbon::tomorrow('Europe/London'); -echo $tomorrow; // 2012-10-15 00:00:00 +echo $tomorrow; // 2012-10-16 00:00:00 $yesterday = Carbon::yesterday(); echo $yesterday; // 2012-10-13 00:00:00 ``` @@ -635,6 +636,11 @@ Brian Nesbitt - - Carbon is licensed under the MIT License - see the `LICENSE` file for details + +### History + +You can view the history of the Carbon project in the [history file](https://github.com/briannesbitt/Carbon/blob/master/history.md). + ### Why the name Carbon? diff --git a/readme.src.md b/readme.src.md index 3de005757a..ffd541e945 100644 --- a/readme.src.md +++ b/readme.src.md @@ -65,6 +65,7 @@ $daysSinceEpoch = Carbon::createFromTimeStamp(0)->diffInDays(); * [Contributing](#about-contributing) * [Author](#about-author) * [License](#about-license) + * [History](#about-history) * [Why the name Carbon?](#about-whyname) @@ -651,6 +652,11 @@ Brian Nesbitt - - Carbon is licensed under the MIT License - see the `LICENSE` file for details + +### History + +You can view the history of the Carbon project in the [history file](https://github.com/briannesbitt/Carbon/blob/master/history.md). + ### Why the name Carbon?