Crate julian_day_converter Copy item path Source DateRangeConversionError Custom Error Type for date range conversion errors JULIAN_DAY_MAX_SUPPORTED Maximum Julian Day value for date-time conversion.
Note: 0 is -4713-11-24 12:00:00 UTC
9999-12-31 23:59:59 UTC JULIAN_DAY_MIN_SUPPORTED Minimum Julian Day value for date-time conversion.
Note: 0 is -4713-11-24 12:00:00 UTC
Note: Some databases may not support dates before -4713
-9999-01-01 00:00:00 UTC JULIAN_DAY_UNIX_EPOCH_DAYS Public constant that may be useful to library users
1970-01-01 00:00:00 UTC JULIAN_DAY_UNIX_EPOCH_WEEKDAY The weekday index for the Unix Epoch (1970-01-01 UTC) is Thursday (4) JulianDay This trait may be implemented by any Date or DateTime object
An implementation for chrono::NaiveDateTime is provided below WeekdayIndex This trait may be implemented by any Date or DateTime object
An implementation for chrono::NaiveDateTime is provided below julian_day_to_datetime Convert Julian day as a 64-bit float to a timezone-neutral chrono::NaiveDateTime object julian_day_to_unix_millis Convert Julian day as a 64-bit float to Unix timestamp milliseconds as a signed 64-bit integer julian_day_to_unixtime Convert Julian day as a 64-bit float to Unix timestamp seconds as a signed 64-bit integer julian_day_to_weekday_index Calculate the weekday index from a given Julian Day with timezone offsets in seconds
This is zero-based, where Sunday = 0, Monday = 1, …, Saturday = 6 julian_day_to_weekday_number Return the weekday number (Mon = 1 to Sun = 7) in a timezone-neutral context
as used in Java, C# and ISO 8601 (Python’s datetime.weekday() method is 0-based from Monday) unix_millis_to_julian_day Convert a Unix timestamp milliseconds as a 64-bit integer to Julian days as a 64-bit float unixtime_to_julian_day Convert a Unix timestamp seconds as a 64-bit integer to Julian days as a 64-bit float