k8s_openapi_ext/ext/
time.rs

1use super::*;
2
3pub trait TimeExt {
4    fn now() -> Self;
5}
6
7impl TimeExt for metav1::Time {
8    fn now() -> Self {
9        Self(openapi::chrono::Utc::now())
10    }
11}