Crate rfc3339

Source
Expand description

§Unix Timestamp to RFC3339 Converter

This library provides functionality to convert Unix timestamps into RFC3339 formatted date-time strings, specifically in the UTC timezone. It’s designed to work both with and without the standard library (no_std).

§Features

  • No standard library dependency when built with default features disabled.
  • Supports heapless operation for embedded environments.

§Usage

use rfc3339::format_unix;
 
let timestamp = format_unix(1609459200, 0);
assert_eq!(timestamp, "2021-01-01T00:00:00.000000Z");

§References

§License

Licensed under the Mozilla Public License, v. 2.0, see LICENSE for details.

Functions§

format_unix
Converts a Unix timestamp into an RFC3339 formatted date-time string in UTC.

Type Aliases§

Timestamp
A timestamp in RFC3339 format.