ContentsIndexReferenceHome
PreviousUpNext
Gregorian2Julian
MATLAB
JD = Gregorian2Julian(GD,[JulCalFlag])
Description

Converts a epoch Gregorian date into the Julian date. The code handles date vectors and date strings supported by Matlab.

Parameters
Parameters 
Description 
GD [varies] 
Gregorian date in any acceptable Matlab date format - see datevec and/or datenum 
JulCalFlag [logical] 
(Optional) Date is Julian, not Gregorian (rare) 
Return Values
Return Values 
Description 
JD [double] 
Julian date 
References

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

Examples

>> JD = Gregorian2Julian(now) 

>> JD = Gregorian2Julian([2006 3 3 16 3 54]) 

>> JD = Gregorian2Julian('03-Mar-2006 16:03:54')

See Also

datevec, datestr, Julian2Gregorian

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