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

#140 in Date and time

Download history 135/week @ 2024-07-29 3/week @ 2024-08-05 3/week @ 2024-08-12 15/week @ 2024-09-16 9/week @ 2024-09-23 13/week @ 2024-09-30

425 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
~68K SLoC