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

Download history 12/week @ 2024-07-23 135/week @ 2024-07-30 4/week @ 2024-08-06 2/week @ 2024-08-13 9/week @ 2024-09-10 6/week @ 2024-09-17 13/week @ 2024-09-24 9/week @ 2024-10-01

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