Is there a method or does anyone know of the mathematical principles behind calculating the timezone from a given longitude? Similar to
http://www.mathworks.co.uk/help/map/ref/timezone.html
I can use this function fine, but it requires the mapping toolbox and as I'm trying to write a function that can be used with any version of matlab this will not suffice. Can anyone provide any suggestions?
I am also writing the functions in R, so if anyone knows of any procedure that can be applied to both matlab and R, that would be great.
Would be OK to define some meridian zones as
MeridianZones = 0:15:165;
and then define the corresponding time zone changes:
TimeZones1 = 0:1:14;
TimeZones2 = -1:-1:-11;
TimeZones = [fliplr(TimeZones2),TimeZones1];
And then use MeridianZones and TimeZones to give a rough approximation of the change in time for a given longitude.