Skip to content

Instantly share code, notes, and snippets.

@renan
Created August 21, 2013 08:46
Show Gist options
  • Select an option

  • Save renan/6291910 to your computer and use it in GitHub Desktop.

Select an option

Save renan/6291910 to your computer and use it in GitHub Desktop.
$tz = new DateTimeZone('Europe/Amsterdam');
$dt = new DateTime('20:00', $tz);
echo $dt->format('c'); // 2013-08-21T20:00:00+02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment