{"repo":"fluttercandies/hora","free":true,"listed":false,"github":"https://github.com/fluttercandies/hora","clone":"git clone https://github.com/fluttercandies/hora.git","description":"A powerful, immutable, and type-safe date-time library for Dart, inspired by Day.js.","language":"Dart","stars":18,"topics":["calendar","dart","date","date-format","datetime","dayjs","flutter"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Hora A powerful, immutable, and type-safe date-time library for Dart, inspired by Day.js . Hora (from Latin, meaning \"hour/time\") provides a modern API for date-time manipulation with first-class Dart support, including sealed classes, pattern matching, and comprehensive type safety. 📚 API Documentation · 中文文档 Features - 🔒 Immutable by Design : All operations return new instances - 🎯 Type-Safe : Leverages Dart's sealed classes and pattern matching - 🌍 i18n Ready : Built-in locale support with extensible architecture - ⚡ Lightweight : No external dependencies (only meta for annotations) - 📅 Calendar-Aware Durations : Proper handling of months and years - 🔌 Plugin System : Extend functionality without modifying core - 🧪 Well Tested : Comprehensive test coverage Installation Add hora to your pubspec.yaml : Then run: Quick Start API Overview Creating Hora Instances Map input in Hora.fromMap / Hora.from({...}) is strict and fail-fast: - Use exactly one timestamp source ( unixMicros , unixMillis , unix , or timestamp ) - Do not mix timestamp fields with date/component fields - Alias keys must not conflict (for example year and years ) - date must be a parseable String , DateTime , or valid Hora Date Components Manipulation All manipulation methods return new instances: Temporal Units Hora uses a sealed TemporalUnit class for type-safe unit specifications: Comparison Query Formatting Format Tokens Token Output Description ------- -------- ------------- YYYY 2024 4-digit year ","default_branch":null,"files":null,"tree":[],"storefront":"/r/fluttercandies","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fluttercandies/hora/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}