library timezone
A class that simplifies timezone picking.
pel/timezone
A class that simplifies timezone picking.
- Thursday, September 17, 2015
- by pelevesque
- Repository
- 1 Watchers
- 1 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
, (*1)
timezone
About
A PSR-4 PHP class for creating a timezone picker dropdown menu., (*2)
Loading
include('Timezone.php');
$timezone = new Pel\Helper\Timezone;
Usage
// Get the pure list, $timezone_identifier => $display
// Then create the menu how you like.
foreach ($timezone::getList() as $timezone_identifier => $display) {
echo '<option value="' . $timezone_identifier . '">' . $display . '</option>';
}
// OR
// Echo the menu directly.
echo $timezone::getMenu();
dev-master
9999999-dev
A class that simplifies timezone picking.
Sources
Download
MIT
The Development Requires
by
Pierre-Emmanuel Lévesque
timezone