daylightGMT.m

Converts GMT time to local time taking into account local DST rules. Has dynamic DST evalution.

Vous suivez désormais cette soumission

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.

Citation pour cette source

Andranik Valedi (2026). daylightGMT.m (https://fr.mathworks.com/matlabcentral/fileexchange/23790-daylightgmt-m), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

Inspiré par : int2strz.m

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
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