Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $value = $timeRec->format('Y-m-d H:i:s');
- $value = new DibiDateTime($value);
- public function __construct($time = 'now', DateTimeZone $timezone = NULL)
- {
- if ($timezone === NULL) {
- parent::__construct($time);
- }
- }
- $time = DateTime::createFromFormat('Y-m-d-h.i.s.u', '2010-12-15-10.23.22.716000');
- var_dump($time);
- object(DateTime)[1]
- public 'date' => string '2010-12-15 10:23:22' (length=19)
- public 'timezone_type' => int 3
- public 'timezone' => string 'UTC' (length=3)
Add Comment
Please, Sign In to add comment