Nextcloud Circles API

TimezoneService
in package

Table of Contents

$configService  : ConfigService
$timeFactory  : TimeFactory
$userId  : string
__construct()  : mixed
TimezoneService constructor.
convertTimeForCurrentUser()  : string
convertTimeForUserId()  : string
convertToTimestamp()  : mixed
getDateTime()  : DateTime
getUTCDate()  : string

Properties

Methods

__construct()

TimezoneService constructor.

public __construct(string $userId, TimeFactory $timeFactory, ConfigService $configService) : mixed
Parameters
$userId : string
$timeFactory : TimeFactory
$configService : ConfigService
Return values
mixed

convertTimeForCurrentUser()

public convertTimeForCurrentUser(string $time) : string
Parameters
$time : string
Return values
string

convertTimeForUserId()

public convertTimeForUserId(string $userId, string $time) : string
Parameters
$userId : string
$time : string
Return values
string

convertToTimestamp()

public convertToTimestamp(mixed $time) : mixed
Parameters
$time : mixed
Return values
mixed

getDateTime()

public getDateTime([string $time = 'now' ]) : DateTime
Parameters
$time : string = 'now'
Return values
DateTime

Search results