Skip to main content

Module time

Module time 

Source
Expand description

Second-precision timestamps for object creation, access, and expiration.

Timestamp represents object creation times, expiration deadlines, and the access times used to check or renew them. Fractional timestamps round up to the next second. Event timestamps, metrics, and multipart modification times retain their own precision.

The default serde representation preserves the SystemTime metadata format. Use Timestamp::as_rfc3339 for HTTP headers and JSON fields containing RFC3339 strings.

Structsยง

InvalidTimestamp
A timestamp is outside the supported range.
Rfc3339Timestamp
An owned timestamp view that displays and serializes as a whole-second RFC3339 string.
Timestamp
A whole-second Unix timestamp used for access time and expiration.