PHP Class SS_Datetimezone

Adds customisable timezones to the nice method on {@link SS_Datetime}.
Inheritance: extends SS_Datetime
Show file Open project: silverstripe/deploynaut

Protected Properties

Property Type Description
$_cache_members Member[]

Public Methods

Method Description
Format ( $format ) Returns the date in the raw SQL-format specific to a given timezone passed from the Member class, e.g. “2006-01-18 16:32:04”

Protected Methods

Method Description
getCurrentCachedUser ( ) : Member | null Format can be called a lot of time in tight loops, so we cache the current user per request

Method Details

Format() public method

Returns the date in the raw SQL-format specific to a given timezone passed from the Member class, e.g. “2006-01-18 16:32:04”
public Format ( $format )

getCurrentCachedUser() protected method

Format can be called a lot of time in tight loops, so we cache the current user per request
protected getCurrentCachedUser ( ) : Member | null
return Member | null

Property Details

$_cache_members protected static property

protected static Member[] $_cache_members
return Member[]