Bitrix API

Time implements JsonSerializable

Table of Contents

Interfaces

JsonSerializable

Methods

__construct()  : mixed
__toString()  : string
getFormat()  : string|null
getOffset()  : int
getRenderFormat()  : string
getTimestamp()  : int
isCorrect()  : bool
jsonSerialize()  : mixed
serialize()  : string
toServerTime()  : DateTime
toSystemObject()  : DateTime
toUserTime()  : DateTime
tryMakeCorrectFormat()  : string

Methods

__construct()

public __construct(string $timeFormatted[, int $offset = 0 ]) : mixed
Parameters
$timeFormatted : string
$offset : int = 0

__toString()

public __toString() : string
Return values
string

getFormat()

public static getFormat() : string|null
Return values
string|null

getOffset()

public getOffset() : int
Return values
int

getRenderFormat()

public static getRenderFormat() : string
Return values
string

getTimestamp()

public getTimestamp() : int
Return values
int

isCorrect()

public static isCorrect(string $timeFormatted) : bool
Parameters
$timeFormatted : string
Return values
bool

jsonSerialize()

public jsonSerialize() : mixed

serialize()

public serialize() : string
Return values
string

toUserTime()

public toUserTime(int $userOffset) : DateTime
Parameters
$userOffset : int
Return values
DateTime

tryMakeCorrectFormat()

public static tryMakeCorrectFormat(string $timeFormatted[, int $offset = 0 ]) : string
Parameters
$timeFormatted : string
$offset : int = 0
Return values
string

        
On this page

Search results