Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'today' to RelativeKeywords #634

Merged
merged 1 commit into from
Jul 21, 2016
Merged

Add 'today' to RelativeKeywords #634

merged 1 commit into from
Jul 21, 2016

Conversation

jroman00
Copy link

Carbon::setTestNow(Carbon::parse('2000-01-01 00:00:00'));

// 1999-12-31 00:00:00, Good!
$carbon = Carbon::parse('yesterday');
var_dump($carbon->toDateTimeString());

// 2016-03-16 00:00:00, Bad!
$carbon = Carbon::parse('today');
var_dump($carbon->toDateTimeString());

// 2000-01-01 00:00:00, Good!
$carbon = Carbon::parse('now');
var_dump($carbon->toDateTimeString());

// 2000-01-02 00:00:00, Good!
$carbon = Carbon::parse('tomorrow');
var_dump($carbon->toDateTimeString());

@codecov-io
Copy link

Current coverage is 99.29%

Merging #634 into master will not affect coverage as of 4d36d27

Powered by Codecov. Updated on successful CI builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants