use-event-timestamp 0.1.0

SystemTime timestamp wrapper for RustUse event primitives.
Documentation
  • Coverage
  • 16.67%
    1 out of 6 items documented1 out of 5 items with examples
  • Size
  • Source code size: 5.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 322.68 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-event
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-event-timestamp

SystemTime timestamp wrapper for RustUse event primitives.

Install

[dependencies]
use-event-timestamp = "0.1.0"

Example

use std::time::SystemTime;
use use_event_timestamp::EventTimestamp;

let timestamp = EventTimestamp::from_system_time(SystemTime::UNIX_EPOCH);

assert_eq!(timestamp.as_system_time(), SystemTime::UNIX_EPOCH);

Scope

  • Wrap std::time::SystemTime for event envelopes.
  • Provide now, from_system_time, and as_system_time helpers.
  • Keep time policy in the caller's application.

Non-Goals

  • No chrono or time dependency.
  • No clock abstraction.
  • No formatting, timezone, or parsing behavior.

Status

Experimental v0.1.0 primitive.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license