class CTimeHelper


Located at : UKNOWVA_ROOT/components/com_community/helpers/time.php

Methods

static 
timeLapse(JDate $date)

No description

static 
timeDifference($start, $end)

No description

static 
timeIntervalDifference($start, $end)

No description

static 
formatTime($jdate)

No description

static 
getInputDate($str = '')

No description

static 
getDate($str = '', $off)

No description

date
getLocaleDate(null $date = 'now')

Return locale date

static string
getTimezone(int $offset)

Retrieve timezone.

static array
getTimezoneList()

Retrieve the list of timezones.

getFormattedTime($time, $format, $offset)

No description

getFormattedUTC($datetime, $offset)

No description

Details

at line 20
static timeLapse(JDate $date)

Parameters

JDate $date

at line 42
static timeDifference($start, $end)

Parameters

$start
$end

at line 85
static timeIntervalDifference($start, $end)

Parameters

$start
$end

at line 108
static formatTime($jdate)

Parameters

$jdate

at line 114
static getInputDate($str = '')

Parameters

$str

at line 146
static getDate($str = '', $off)

Parameters

$str
$off

at line 206
date getLocaleDate(null $date = 'now')

Return locale date

Parameters

null $date

Return Value

date object

at line 229
static string getTimezone(int $offset)

Retrieve timezone.

Parameters

int $offset The current offset

Return Value

string The current time zone for the given offset.

at line 241
static array getTimezoneList()

Retrieve the list of timezones.

Return Value

array The list of timezones available.

at line 288
getFormattedTime($time, $format, $offset)

Parameters

$time
$format
$offset

at line 362
getFormattedUTC($datetime, $offset)

Parameters

$datetime
$offset