DateTime::__construct

DateTime::__construct - Returns new DateTime object
Manual
Code Examples

Example #1 Intricacies of DateTime::__construct

Result: 2000-01-01 00:00:00-05:00 2000-01-01 00:00:00+12:00 2010-04-24 10:24:16-04:00 2010-04-25 02:24:16+12:00 2000-01-01 00:00:00+00:00 2000-03-01 00:00:00-05:00
PHP Version:

Example #2 DateTime::__construct example

Result: 2000-01-01
PHP Version:


Function DateTime::__construct:

Date and Time Functions

Most used PHP functions