\duncan3dc\Dates\TraitsFormatting

Format the internal unix timestamp in a specified way.

Summary

Methods
Properties
Constants
numeric()
string()
format()
No public properties found
No constants found
No protected methods found
$unix
N/A
No private methods found
No private properties found
N/A

Properties

$unix

$unix : integer

Type

integer — Unix timestamp representing the datetime of this object

Methods

numeric()

numeric(  $format) : integer

Format the date unsing the specified format and return a number.

Parameters

$format

Returns

integer

string()

string(  $format) : string

Format the date unsing the specified format and return a string.

Parameters

$format

Returns

string

format()

format(  $format) : string|integer

Format the date using the specified format.

This method will convert the result to an integer if it looks like one.

Parameters

$format

Returns

string|integer