<-- Previous || Up || Next -->

Julian Day Function
Dates Times Class

Public Function JulianDay( _
    ByVal vDateTime As Variant _
    ) As Variant

Returns the Julian Day corresponding to a date/time value.
Similar to the JulianDate function, but does not correctly handle pre-1752 dates since it is based upon Microsoft's date functions.

Examples:
    JulianDay(#1/1/1899#) = 2414656
    JulianDay(#1/1/1899 9:00#) = 2414656.375
    JulianDay(#1/1/1965#) = 2438762
    JulianDay(#1/1/1965 9:00#) = 2438762.375
See also:
    JulianDate Function
    DayNumber Function
    DaysSinceZero Function
vDateTime: The date/time value whose Julian day number is returned. Function returns Null if vDateTime is Null or cannot be fixed up to a Date.
v2.0 BugFix: This function was off by .5 in previous versions of Entisoft Tools. This function has been renamed from DateTimeToJulianDay to JulianDay.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.