ITimeFactory
Needed to mock calls to time()
Tags
Table of Contents
- getDateTime() : DateTime
- getTime() : int
Methods
getDateTime()
public
getDateTime([string $time = 'now' ][, DateTimeZone $timezone = null ]) : DateTime
Parameters
- $time : string = 'now'
- $timezone : DateTimeZone = null
Tags
Return values
DateTime —getTime()
public
getTime() : int
Tags
Return values
int —the result of a call to time()