PHP Dummy

DateTimeInterface

Describes Date Time interface.

Table of Contents

Methods

date()  : string
Retrieve random date.
datetime()  : string
Retrieve random datetime.
time()  : string
Retrieve random time.
timestamp()  : int
Retrieve random timestamp.

Methods

date()

Retrieve random date.

public date([string|null $From = null ][, string|null $To = null ]) : string
Parameters
$From : string|null = null

The lowest date value.

$To : string|null = null

The highest date value.

Return values
string

datetime()

Retrieve random datetime.

public datetime([string|null $From = null ][, string|null $To = null ]) : string
Parameters
$From : string|null = null

The lowest date value.

$To : string|null = null

The highest date value.

Return values
string

timestamp()

Retrieve random timestamp.

public timestamp([string|null $From = null ][, string|null $To = null ]) : int
Parameters
$From : string|null = null

The lowest date value.

$To : string|null = null

The highest date value.

Return values
int

        
On this page

Search results