daylightGMT.m
by Andranik Valedi
15 Apr 2009
(Updated 20 Apr 2009)
Converts GMT time to local time taking into account local DST rules. Has dynamic DST evalution.
|
Watch this File
|
| File Information |
| Description |
This code was made to automate the conversion of GMT time values to local time values. The code takes as input a date string in 'mm-dd-yy' format, and an array of Matlab numeric date values. The code only considers the decimal part of the input time array, and outputs an adjusted numeric date value array based on the input date string. The code is modifier-friendly and is easily changed to meet local rules by adjusting the input parameters at the top of the code.
PLEASE NOTE: int2strz.m M-File is required for this code to work. Download Mr. Carlos Adrian Vargas Aguilera's M-File at:
http://www.mathworks.com/matlabcentral/fileexchange/12973
Place the file int2strz.m in your working directory. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
int2strz.m
|
| MATLAB release |
MATLAB 7.5 (R2007b)
|
| Other requirements |
int2strz.m |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 22 Jul 2011 |
Ted Teng
|
|
|
| Updates |
| 15 Apr 2009 |
Corrected conversion mechanism. Now works properly.. my apologies for the previous submission! |
| 20 Apr 2009 |
Corrected input array index reference. |
|
Contact us at files@mathworks.com