Nextcloud PHP API (stable19)

ITimeFactory

Needed to mock calls to time()

Tags
since
8.0.0

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
since
15.0.0
Return values
DateTime

getTime()

public getTime() : int
Tags
since
8.0.0
Return values
int

the result of a call to time()

Search results