Current epoch seconds.
()
| 275 | |
| 276 | /// Current epoch seconds. |
| 277 | fn now_epoch_secs() -> u64 { |
| 278 | SystemTime::now() |
| 279 | .duration_since(UNIX_EPOCH) |
| 280 | .unwrap_or_default() |
| 281 | .as_secs() |
| 282 | } |
| 283 | |
| 284 | #[cfg(test)] |
| 285 | mod tests { |
no test coverage detected