HumHub Documentation (unofficial)

TimezoneHelper
in package

TimezoneHelpers

Tags
author

luke

Table of Contents

Methods

generateList()  : array<string|int, mixed>
// Modified version of the timezone list function from http://stackoverflow.com/a/17355238/507629 // Includes current time for each timezone (would help users who don't know what their timezone is)
getDatabaseConnectionTime()  : DateTime
Returns the date time from the database connection

Methods

generateList()

// Modified version of the timezone list function from http://stackoverflow.com/a/17355238/507629 // Includes current time for each timezone (would help users who don't know what their timezone is)

public static generateList([bool $includeUTC = false ][, bool $withOffset = true ]) : array<string|int, mixed>
Parameters
$includeUTC : bool = false

whether or not to include UTC timeZone

$withOffset : bool = true

whether or not to add offset information

Tags
staticvar

array $regions

throws
Exception
Return values
array<string|int, mixed>

getDatabaseConnectionTime()

Returns the date time from the database connection

public static getDatabaseConnectionTime() : DateTime
Return values
DateTime

        
On this page

Search results