daylightGMT.m

版本 1.3.0.0 (2.4 KB) 作者: Andranik Valedi
Converts GMT time to local time taking into account local DST rules. Has dynamic DST evalution.
996.0 次下载
更新时间 2009/4/20

查看许可证

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.

引用格式

Andranik Valedi (2024). daylightGMT.m (https://www.mathworks.com/matlabcentral/fileexchange/23790-daylightgmt-m), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Dates and Time 的更多信息
致谢

参考作品: int2strz.m

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.3.0.0

Corrected input array index reference.

1.2.0.0

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

1.0.0.0