Dater Class

Create object

Utilize the constructor of the Dater class:

$dater = new Dater();

Init

Init the class:

$dater->init(int $date) : void

Get time zone

get the time zone:

$dater->getTimeZone() : DateTimeZone

Get date time

get the date time:

$dater->getDateTime() : DateTime

Format time

format to time:

$dater->formatTime() : string

Format date

format to date:

$dater->formatDate() : string

Format field

format to field:

$dater->formatField() : string
Edit on GitHub