Table of Contents
Constants
-
CLIENT_DATE_FORMAT
= 'D M d Y'
-
CLIENT_DATETIME_FORMAT
= 'Y-m-d\TH:i:s\Z'
-
DATE_FORMAT
= 'd.m.Y'
-
DATETIME_FORMAT
= 'd.m.Y H:i:s'
-
UTC_TIMEZONE_NAME
= 'UTC'
Methods
-
__wakeup()
: mixed
-
getDateUtc()
: DateTime
-
getInstance()
: static
-
getOffsetDate()
: DateTime
-
getServerDate()
: DateTime
-
isHoliday()
: bool
-
isNotWorkingDay()
: bool
-
isWeekend()
: bool
public
string
CLIENT_DATE_FORMAT
= 'D M d Y'
public
string
CLIENT_DATETIME_FORMAT
= 'Y-m-d\TH:i:s\Z'
public
string
DATE_FORMAT
= 'd.m.Y'
public
string
DATETIME_FORMAT
= 'd.m.Y H:i:s'
UTC_TIMEZONE_NAME
public
string
UTC_TIMEZONE_NAME
= 'UTC'
__wakeup()
public
__wakeup() : mixed
getDateUtc()
public
getDateUtc(DateTime $dateTime) : DateTime
Parameters
-
$dateTime
: DateTime
-
getInstance()
public
static getInstance() : static
getOffsetDate()
public
getOffsetDate(int $userId) : DateTime
Parameters
-
$userId
: int
-
-
throws
-
ObjectException
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
getServerDate()
public
getServerDate([string|null $date = null ][, string $format = self::DATE_FORMAT ]) : DateTime
Parameters
-
$date
: string|null
= null
-
-
$format
: string
= self::DATE_FORMAT
-
isHoliday()
public
isHoliday(DateTime $dateTime) : bool
Parameters
-
$dateTime
: DateTime
-
-
throws
-
LoaderException
isNotWorkingDay()
public
isNotWorkingDay(DateTime $dateTime) : bool
Parameters
-
$dateTime
: DateTime
-
-
throws
-
LoaderException
isWeekend()
public
isWeekend(DateTime $dateTime) : bool
Parameters
-
$dateTime
: DateTime
-
-
throws
-
LoaderException