Permalink
Browse files

fixed readme...

  • Loading branch information...
nicholas-eden committed Sep 6, 2013
1 parent 47c879b commit 959940383ebc2645de6fca18943cd3eb6961d682
Showing with 12 additions and 12 deletions.
  1. +7 −7 readme.md
  2. +5 −5 readme.src.md
View
@@ -177,7 +177,7 @@ To accompany `now()`, a few other static instantiation helpers exist to create w
```php
$now = Carbon::now();
-echo $now; // 2013-09-05 23:34:13
+echo $now; // 2013-09-05 23:38:31
$today = Carbon::today();
echo $today; // 2013-09-05 00:00:00
$tomorrow = Carbon::tomorrow('Europe/London');
@@ -261,7 +261,7 @@ echo Carbon::parse('now'); // 2001-05-21 12:00:00
var_dump(Carbon::hasTestNow()); // bool(true)
Carbon::setTestNow(); // clear the mock
var_dump(Carbon::hasTestNow()); // bool(false)
-echo Carbon::now(); // 2013-09-05 23:34:13
+echo Carbon::now(); // 2013-09-05 23:38:31
```
A more meaning full example:
@@ -301,11 +301,11 @@ Relative phrases are also mocked according to the given "now" instance.
```php
$knownDate = Carbon::create(2001, 5, 21, 12); // create testing date
Carbon::setTestNow($knownDate); // set the mock
-echo new Carbon('tomorrow'); // 2001-05-21 12:00:00
-echo new Carbon('yesterday'); // 2001-05-21 12:00:00
-echo new Carbon('next wednesday'); // 2001-05-21 12:00:00
-echo new Carbon('last friday'); // 2001-05-21 12:00:00
-echo new Carbon('this thursday'); // 2001-05-21 12:00:00
+echo new Carbon('tomorrow'); // 2001-05-22 12:00:00
+echo new Carbon('yesterday'); // 2001-05-20 12:00:00
+echo new Carbon('next wednesday'); // 2001-05-23 12:00:00
+echo new Carbon('last friday'); // 2001-05-18 12:00:00
+echo new Carbon('this thursday'); // 2001-05-24 12:00:00
```
<a name="api-getters"/>
View
@@ -311,11 +311,11 @@ Relative phrases are also mocked according to the given "now" instance.
```php
{{::lint($knownDate = Carbon::create(2001, 5, 21, 12);/*pad(54)*/)}} // create testing date
{{::lint(Carbon::setTestNow($knownDate);/*pad(54)*/)}} // set the mock
-{{testaid1::exec(echo new Carbon('tomorrow');/*pad(54)*/)}} // {{testaid1_eval}}
-{{testaid2::exec(echo new Carbon('yesterday');/*pad(54)*/)}} // {{testaid2_eval}}
-{{testaid3::exec(echo new Carbon('next wednesday');/*pad(54)*/)}} // {{testaid3_eval}}
-{{testaid4::exec(echo new Carbon('last friday');/*pad(54)*/)}} // {{testaid4_eval}}
-{{testaid5::exec(echo new Carbon('this thursday');/*pad(54)*/)}} // {{testaid5_eval}}
+{{testaid6::exec(echo new Carbon('tomorrow');/*pad(54)*/)}} // {{testaid6_eval}}
+{{testaid7::exec(echo new Carbon('yesterday');/*pad(54)*/)}} // {{testaid7_eval}}
+{{testaid8::exec(echo new Carbon('next wednesday');/*pad(54)*/)}} // {{testaid8_eval}}
+{{testaid9::exec(echo new Carbon('last friday');/*pad(54)*/)}} // {{testaid9_eval}}
+{{testaid10::exec(echo new Carbon('this thursday');/*pad(54)*/)}} // {{testaid10_eval}}
```
<a name="api-getters"/>

0 comments on commit 9599403

Please sign in to comment.