Skip to main content

date2j

Function date2j 

Source
pub fn date2j(year: i32, month: i32, day: i32) -> i32
Expand description

date2j: the Julian day of a date in the proleptic Gregorian calendar. The year before 1 is 0.

The arithmetic wraps as the C code does on a value far out of range. The callers check the range before they use the result.