Code covered by the BSD License  

Highlights from
daylightGMT.m

5.0

5.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 2.37 KB File ID: #23790
image thumbnail

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

Great work!

Please login to add a comment or rating.
Updates
15 Apr 2009

Corrected conversion mechanism. Now works properly.. my apologies for the previous submission!

20 Apr 2009

Corrected input array index reference.

Tag Activity for this File
Tag Applied By Date/Time
gmt Andranik Valedi 15 Apr 2009 11:41:27
dst Andranik Valedi 15 Apr 2009 11:41:27
time Andranik Valedi 15 Apr 2009 11:41:27
convert Andranik Valedi 15 Apr 2009 11:41:27
date Andranik Valedi 15 Apr 2009 11:41:27

Contact us at files@mathworks.com