kine_core/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2#![doc = include_str!("../README.md")]
3#![warn(missing_docs)]
4
5mod calendar;
6mod duration;
7mod providers;
8mod results;
9mod time;
10mod timezone;
11
12pub mod leap_seconds;
13pub mod tz;
14
15pub use calendar::{Calendar, CalendarTime};
16pub use duration::Duration;
17pub use results::{Error, Result, TimeResult};
18pub use time::Time;
19pub use timezone::{OffsetTime, ParseError, Sigil, TimeZone};
20
21/// A date and time as indicated by a calendar
22///
23/// Anything user-visible should probably be handled using this type. However,
24/// remember that operations on it can be vastly different from operations on
25/// regular times, durations are often not commutative, etc.
26pub type WrittenTime<Cal> = <Cal as Calendar>::Time;