Home | About Gladden | Wellness | Portfolio | Blog Posts

PHP date & time formats test page

PHP Date/Time Resources

PHP Date/Time Functions reference

Timezone functions

timezone_location_get() – Returns location information for a specified timezone

Location information for New York's timezone:

Array ( [country_code] => US [latitude] => 40.71416 [longitude] => -74.00639 [comments] => Eastern (most areas) )

Location information for Taipei's timezone:

Array ( [country_code] => TW [latitude] => 25.05 [longitude] => 121.5 [comments] => )

timezone_name_from_ abbr() – Returns the timezone name from abbreviation

America/New_York

Europe/Helsinki

timezone_name_get() – Returns the name of the timezone

America/New_York

timezone_offset_get() – Returns the timezone offset from GMT

-14400

Shows offset from Europe/Oslo time for America/New_York in milliseconds.

Addtional PHP date/time experienments:

Display the server's Date and time in a US style format:

Other Date format styles

format from SI events:
F d, g:ia
August 12, 9:14pm

2020-08-12 21:14:55



Addtional PHP reference:

PHP ref

Drupal Community Tools