spacecell 0.1.0

Datetime library with ISO8601/RFC3339 parsing, calendar arithmetic, and business day calculations
Documentation
//! # **Datetime Module** - *Zero-dependency datetime library for Minarrow*
//!
//! A lightweight, high-performance datetime library built specifically for Minarrow's needs.
//! Provides ISO8601/RFC3339 parsing, formatting, calendar operations, and business day
//! calculations without external dependencies.
//!
//! ## Features
//! - Proleptic Gregorian calendar with epoch-based calculations
//! - ISO 8601 week numbering and custom week start configuration
//! - Calendar and fiscal quarters, half-years, years
//! - Business day calculations with configurable holidays
//! - Timezone offset support (UTC±HH:MM)
//! - Zero allocations for common operations
//! - SIMD-ready batch operations (TODO: parallelization)
//!
//! ## Design
//! All calculations use days-since-Unix-epoch (1970-01-01) as the fundamental unit,
//! ensuring efficient arithmetic and consistent behavior across the library.

mod arithmetic;
mod business;
mod calendar;
mod civil;
mod components;
mod config;
mod construct;
mod convert;
mod delta;
mod format;
mod parse;
mod time_units;

// Public exports
pub use arithmetic::*;
pub use business::{
    add_business_days, count_business_days, is_business_day, is_weekend, next_business_day,
    prev_business_day, Weekday,
};
pub use calendar::*;
pub use civil::{day_of_week, day_of_year, days_in_month, days_to_ymd, is_leap_year, ymd_to_days};
pub use components::{components_to_timestamp, extract_components, DateTimeComponents};
pub use config::CalendarConfig;
pub use construct::{
    from_timestamp_millis, from_timestamp_seconds, from_ymd, from_ymd_hms, from_ymd_hms_nano,
    ConstructError,
};
pub use convert::{convert_timestamp, ConversionError};
pub use delta::TimeDelta;
pub use format::{format_date_only, format_iso8601, format_rfc3339, format_time_only};
pub use parse::{parse_datetime_flexible, parse_iso8601, parse_rfc3339, ParseError};