9 releases

new 0.2.5 Jan 22, 2025
0.2.4 Jul 30, 2024
0.2.3 Sep 30, 2023
0.2.1 Aug 29, 2023
0.1.0 Aug 29, 2022

#138 in Date and time

Download history 6/week @ 2024-12-09 3/week @ 2024-12-16 114/week @ 2025-01-20

114 downloads per month
Used in greg-tz

GPL-3.0-or-later

105KB
2K SLoC

greg

clueless

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 (only YYYY-MM-DD and hh:mm:ss provided)
  • no locale support
  • no leap second support

Dependencies

~0–3.5MB
~67K SLoC