Skip to content

Instantly share code, notes, and snippets.

@derhansen
Created January 24, 2016 17:59
Show Gist options
  • Select an option

  • Save derhansen/72bd3e56b2c7e2c27144 to your computer and use it in GitHub Desktop.

Select an option

Save derhansen/72bd3e56b2c7e2c27144 to your computer and use it in GitHub Desktop.
DateTime object for the 01.01.2016 using \DateTime::createfromformat('d.m.Y', '01.01.2016')
class DateTime#1 (3) {
public $date =>
string(26) "2016-01-01 18:56:23.000000"
public $timezone_type =>
int(3)
public $timezone =>
string(13) "Europe/Berlin"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment