plot::calendar
Dates on an axis: values are seconds since 1970-01-01 00:00 UTC
(proleptic Gregorian calendar, no leap seconds). Ticks fall on whole
calendar units: years, months, days, hours, minutes or seconds.
Calendar arithmetic is Hinnant's days_from_civil and
civil_from_days.
Functions
dateSource
pub fn date(year: i64, month: i64, day: i64) -> f64 Seconds since the epoch at the start of a date.
nabi
assert(plot::date(1970, 1, 2) == 86400.0);
assert(plot::date(2000, 3, 1) == 951868800.0);
datetimeSource
pub fn datetime(year: i64, month: i64, day: i64, hour: i64, minute: i64, second: f64) -> f64 Seconds since the epoch at a date and time of day (UTC).
nabi
assert(plot::datetime(1970, 1, 1, 1, 0, 30.0) == 3630.0);