World Time Zones

Convert between local time and UTC. Get local time in various places in the world.
3.9K Downloads
Updated 1 Sep 2016

View License

This application is based on a large table of places (cities, states, provinces,states) and their time zones. The methods are:
t = timeZones() construct time converter object
tz = t.zone(place) find a time zone (-11 to +12)
tm = t.st2utc(time, place) convert local standard time to UTC
tm = t.dst2utc(time, place) convert local daylight time to UTC
tm = t.utc2st(time, place) convert utc to local standard time
tm = t.utc2dst(time, place) convert utc to local daylight time
t.places() all places for which time is tabulated

Cite As

Bill McKeeman (2024). World Time Zones (https://www.mathworks.com/matlabcentral/fileexchange/22223-world-time-zones), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Dates and Time in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.3.0.1

Updated license

1.3.0.0

Somehow a floating ' got into the source file. Sorry

1.2.0.0

removed screen shot

1.1.0.0

Implemented workaround for problem found in 2009a.

1.0.0.0