\app\framework\Component\StdLib\StdObjectStdObjectTrait

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
arr()
datetime()
str()
url()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

datetime()

datetime(string|integer  $time = "now", null|string  $timezone = null) : \app\framework\Component\StdLib\StdObject\DateTimeObject\DateTimeObject

Create an instance of DateTime Standard Object.

Parameters

string|integer $time

A date/time string. List of available formats is explained here http://www.php.net/manual/en/datetime.formats.php

null|string $timezone

Timezone in which you want to set the date. Here is a list of valid timezones: http://php.net/manual/en/timezones.php

Returns

\app\framework\Component\StdLib\StdObject\DateTimeObject\DateTimeObject