DateTime (class)

The DateTime class

Introduction

(PHP 5 >= 5.2.0, PHP 7)

Representation of date and time.

Class synopsis

DateTime implements DateTimeInterface {
/* Constants */
const string ATOM = "Y-m-d\TH:i:sP" ;