php7-mysql-data/Kapitel_4/Lektion_4/1_datetime.php

15 lines
186 B
PHP
Raw Normal View History

2016-08-16 21:20:53 +02:00
<?php
$datum = new DateTime();
var_dump(
date('d.m.Y H:i:s')
);
var_dump(
$datum->format('d.m.Y H:i:s')
);
var_dump($datum->getTimezone());
var_dump($datum->getTimestamp());