DateTimeInterface
in
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
stringdatetime()
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
stringtime()
Retrieve random time.
public
time() : string
Return values
stringtimestamp()
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.