Crates.io | irox-time |
lib.rs | irox-time |
version | 0.4.4 |
source | src |
created_at | 2023-10-16 00:32:34.181346 |
updated_at | 2024-10-30 02:03:16.399529 |
description | Date and Time types to manage the inherent complexity of dealing with the fourth dimension. |
homepage | https://github.com/spmadden/irox |
repository | https://github.com/spmadden/irox |
max_upload_size | |
id | 1004218 |
size | 140,246 |
A date & time library that aims for ease of use using static compile-time types based on the Proleptic Gregorian Calendar.
Goals:
Epoch
sNon-goals:
Eventually:
time
- Contains the base Time
struct, describing a standard Hours/minutes/seconds
framework.datetime
- Contains UTCDateTime
structs, describing a Date
with a Time
epoch
- Contains Epoch
, UnixEpoch
, GPSEpoch
, and others, providing the datum anchor for timestamps
UnixTimestamp
, GPSTimestamp
, etc.format
- Date & Time Formatters & Parsers
gregorian
- Contains Date
and Month
, that describe a gregorian calendar date.std
- adds 'std' support:
UnixTimestamp::now() -> UnixTimestamp
UnixTimestamp::elapsed() -> Duration
UTCDateTime::now() ->UTCDateTime
std::error::Error
on errors