Documentation

Date
in package

Table of Contents

Properties

$date  : mixed

Methods

__call()  : mixed
__construct()  : mixed
dateWithOffSet()  : mixed
Return the jdate with the correct specified timezone offset
format()  : mixed
Handle our own format behavior
getDate()  : mixed
getOffset()  : mixed
Support backwards compatibility
getTimezone()  : mixed
Retrieves the timezone currently being used in Joomla
setTimezone()  : mixed
Set the timezone on the date
toLapsed()  : mixed
Returns the lapsed time since the current time
toMySQL()  : mixed
Backward compatibility purposes only. Should not be used at all

Properties

$date

private mixed $date = null

Methods

__call()

public __call(mixed $method, mixed $args) : mixed
Parameters
$method : mixed
$args : mixed

__construct()

public __construct([mixed $current = '' ][, mixed $withTimezone = null ]) : mixed
Parameters
$current : mixed = ''
$withTimezone : mixed = null

dateWithOffSet()

Return the jdate with the correct specified timezone offset

public dateWithOffSet([mixed $str = '' ]) : mixed
Parameters
$str : mixed = ''
Tags
since
1.0.0
access

public

format()

Handle our own format behavior

public format([mixed $format = 'Y-m-d H:i:s' ][, mixed $local = true ][, mixed $translate = true ][, mixed $withJText = true ]) : mixed
Parameters
$format : mixed = 'Y-m-d H:i:s'
$local : mixed = true
$translate : mixed = true
$withJText : mixed = true
Tags
since
1.0.0
access

public

getDate()

public getDate([mixed $str = '' ]) : mixed
Parameters
$str : mixed = ''

getOffset()

Support backwards compatibility

public getOffset([mixed $numberOnly = false ]) : mixed
Parameters
$numberOnly : mixed = false
Tags
since
1.0.0
access

public

getTimezone()

Retrieves the timezone currently being used in Joomla

public getTimezone() : mixed
Tags
since
1.0.0
access

public

setTimezone()

Set the timezone on the date

public setTimezone([mixed $timezone = null ]) : mixed
Parameters
$timezone : mixed = null
Tags
since
1.0.0
access

public

toLapsed()

Returns the lapsed time since the current time

public toLapsed() : mixed
Tags
since
1.1.4
access

public

toMySQL()

Backward compatibility purposes only. Should not be used at all

public toMySQL([mixed $local = false ]) : mixed
Parameters
$local : mixed = false
Tags
since
1.0.0
access

public


        
On this page

Search results