Skip to content

Instantly share code, notes, and snippets.

@pschultz
Created August 28, 2013 12:34
Show Gist options
  • Save pschultz/6365514 to your computer and use it in GitHub Desktop.
Save pschultz/6365514 to your computer and use it in GitHub Desktop.
<?php
$options = array();
for ($d = new \DateTime('1970-01-01 09:00:00'); $d < new \DateTime('1970-01-01 19:00:00'); $d->modify('+ 15 minutes')) {
$time = $d->format('H:i');
$options[$time] = $time;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment