Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dillchuk/timezone-options

Generates a list of time zones and descriptions, for use in a select field.
https://github.com/dillchuk/timezone-options

Last synced: about 2 months ago
JSON representation

Generates a list of time zones and descriptions, for use in a select field.

Awesome Lists containing this project

README

        

# TimezoneOptions

~~~
TimezoneOptions::generate();

/*
Generates results indexed in several ways:

Array
(
[regions] => Array
(
[Africa] => Array
(
[Africa/Abidjan] => Abidjan
[Africa/Accra] => Accra
...
)

[America] => Array
(
[America/Adak] => Adak
[America/Anchorage] => Anchorage
...
)
...
)

[time] => Array
(
[00:28] => Array
(
[Asia/Rangoon] => Rangoon
[Indian/Cocos] => Cocos
...
)

[00:58] => Array
(
[Antarctica/Davis] => Davis
[Asia/Bangkok] => Bangkok
...
)

...

[13:58] => Array
(
[America/Anguilla] => Anguilla
[America/Antigua] => Antigua
...
)
...

)

[offset] => Array
(
...

[-04:00] => Array
(
[America/Anguilla] => Anguilla
[America/Antigua] => Antigua
...
)
...

[+02:00] => Array
(
[Africa/Blantyre] => Blantyre
[Africa/Bujumbura] => Bujumbura
...
)
...

)

)
/*
~~~