ContentsIndexReferenceHome
PreviousUpNext
ConvertTZ
MATLAB
dvout = ConvertTZ(TZin,dv,TZout,[fmt])
Description

Converts the date from one time zone (TZin) to another (TZout). If TZout is empty, Universal Time is returned. Daylight saving time is handled automatically in the code - although care should be taken here as the start and end dates vary with location and date.

Parameters
Parameters 
Description 
TZin [cell] 
Time zone of date, supported times zones are: UTC: 0 hr, Atlantic: UTC - 4hr (3hr DLS), Eastern: UTC - 5hr (4hr DLS), Indiana: UTC - 5hr (5hr DLS), Central: UTC - 6hr (5hr DLS), Mountain: UTC - 7hr (6hr DLS), Pacific: UTC - 8hr (7hr DLS), Alaska: UTC - 9hr (8hr DLS) Hawaii: UTC - 10hr (10hr DLS) 
dv [vector/cell] 
Date value in any acceptable Matlab date format - date number, date vector, or date string - see datevec and datenum. If a string (or cell of strings) is passed in and no format is defined, the format must be in one of the date formats 0,1,2,6,13,14,15,16,23 as defined by datestr. If passing in date numbers, or date vectors, each row is considered to be a different time/date. 
TZout [string] 
Desired output time zone. 
fmt [string/scalar] 
(Optional) Format string or format identifier for output time 
Return Values
Return Values 
Description 
dvout [vector] 
UT time vector 
References

  • D. A. Vallado, Fundamentals of astrodynamics and applications. New York: McGraw-Hill, 1997.

See Also
Group
Made with Doc-O-Matic.
Copyright (c) 2009. All rights reserved.
What do you think about this topic? Send feedback!