JD = Gregorian2Julian(GD,[JulCalFlag])
Converts a epoch Gregorian date into the Julian date. The code handles date vectors and date strings supported by Matlab.
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 |
Description |
JD [double] |
Julian date |
>> JD = Gregorian2Julian(now)
>> JD = Gregorian2Julian([2006 3 3 16 3 54])
>> JD = Gregorian2Julian('03-Mar-2006 16:03:54')
datevec, datestr, Julian2Gregorian
Copyright (c) 2009. All rights reserved.
|
What do you think about this topic? Send feedback!
|