Set a raw epoch timestamp, preserved verbatim for historical imports. New writers should use [`Self::timestamp_millis`]; legacy seconds remain readable without rewriting their payloads.
(mut self, ts: i64)
| 162 | /// New writers should use [`Self::timestamp_millis`]; legacy seconds remain |
| 163 | /// readable without rewriting their payloads. |
| 164 | pub fn timestamp(mut self, ts: i64) -> Self { |
| 165 | self.timestamp = Some(ts); |
| 166 | self |
| 167 | } |
| 168 | |
| 169 | /// Set the timestamp in Unix epoch milliseconds. Defaults to now. |
| 170 | pub fn timestamp_millis(self, ts: i64) -> Self { |
no outgoing calls