datetimeutils 0.1.3

A zero-dependency crate with some date/time/calendar utilities
Documentation
  • Coverage
  • 58.49%
    31 out of 53 items documented0 out of 31 items with examples
  • Size
  • Source code size: 13.58 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.44 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • staktrace/datetimeutils
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • staktrace

datetimeutils

Build Status Crate

A handful of utility functions for dealing with std::time::SystemTime in somewhat-useful ways. If you need handling for timezones, look elsewhere. This crate only deals with simple stuff. The main attraction is that it has zero external dependencies, so if it does what you want, it's lighter-weight than using chrono or time.

API

There's a bunch of public functions in the crate to do basic datetime stuff such as find the number of days in a particular year or index months. Also there's a struct PostEpochTime which effectively wraps a std::time::SystemTime but can provide human-readable date/time values from it. See full rustdoc at https://docs.rs/datetimeutils.

Examples

See files in the examples/ folder for quick examples.