How burntsushi/jiff works
Main Components
a) Core Library Components:
• Civil Time Module (src/civil/)
• Date handling
• Time handling
• DateTime operations
• ISO Week handling
• Time Zone Management (src/tz/)
• IANA Time Zone Database integration
• Platform-specific implementations
• Offset calculations
• Formatting System (src/fmt/)
• Multiple format implementations (RFC2822, RFC9557, etc.)
• Parsing capabilities
• Serialization support
b) Platform Support Layer:
• Unix support
• Windows support
• Android support
• WASM support
┌─ Application Layer ─────────────────────┐
• Public API (Timestamp, Zoned, etc.) │
• ┤
• Format & Parse Layer │
• ┌─────────┐ ┌──────────┐ ┌───────────┐ │
• RFC2822 │ │ Temporal │ │ Strftime │ │
• ┘ └──────────┘ └───────────┘ │
• ┤
• Core DateTime Operations │
• ┌─────────┐ ┌──────────┐ ┌───────────┐ │
• Civil │ │ Duration │ │ Timezone │ │
• ┘ └──────────┘ └───────────┘ │
• ┤
• Platform Abstraction Layer │
• ┌───────┐ ┌─────────┐ ┌───────┐ ┌────┐ │
• Unix │ │Windows │ │Android│ │WASM│ │
• ┘ └─────────┘ └───────┘ └────┘ │
• ┘
Additional Elements
• CLI tools (jiff-cli)
• TZDB generation
• Platform-specific data generation
Notes
Notes about:
• Minimum Rust version requirement (1.70.0)
• Feature flags and their effects on the architecture
• Platform-specific behavior differences