Skip to content

Instantly share code, notes, and snippets.

@caefer
Created March 23, 2011 21:37
Show Gist options
  • Select an option

  • Save caefer/884073 to your computer and use it in GitHub Desktop.

Select an option

Save caefer/884073 to your computer and use it in GitHub Desktop.
<?php
use Caefer\WeekAhead;
$w = new WeekAhead('today');
echo $w->format('Y-m-d').PHP_EOL;
$w = new WeekAhead('tomorrow');
echo $w->format('Y-m-d').PHP_EOL;
$w = new WeekAhead('Fri');
echo $w->format('Y-m-d').PHP_EOL;
$w = new WeekAhead('Sat');
echo $w->format('Y-m-d').PHP_EOL;
$w = new WeekAhead('Sun');
echo $w->format('Y-m-d').PHP_EOL;
$w = new WeekAhead('Mon');
echo $w->format('Y-m-d').PHP_EOL;
$w = new WeekAhead('Tue');
echo $w->format('Y-m-d').PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment