8 releases
0.2.4 | Jul 30, 2024 |
---|---|
0.2.3 | Sep 30, 2023 |
0.2.1 | Aug 29, 2023 |
0.1.2 | Oct 29, 2022 |
0.1.0 | Aug 29, 2022 |
#135 in Date and time
425 downloads per month
Used in greg-tz
105KB
2K
SLoC
greg
hmm.. today i will write my own datetime library
lib.rs
:
Simple Unobtrusive Date & Time Library
Greg is a simple datetime library that doesn't get in your way.
You get to access the struct fields.
Timezone support is provided in greg-tz
.
Organized into two categories: real / physical time dealing only in seconds and the more abstract calendar time dealing with dates, time-of-day and time zones as understood by humans.
Note that for the time being this library only operates at the precision of a full second -- this is more convenient to work with, but it is far too imprecise for many applications.
Other notable caveats include:
- no
strftime
type formatting (onlyYYYY-MM-DD
andhh:mm:ss
provided) - no locale support
- no leap second support
Dependencies
~0–3.5MB
~68K SLoC