- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for toUnstructured (0.19 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
func (t Time) MarshalCBOR() ([]byte, error) { if t.IsZero() { return cbor.Marshal(nil) } return cbor.Marshal(t.UTC().Format(time.RFC3339)) } // ToUnstructured implements the value.UnstructuredConverter interface. func (t Time) ToUnstructured() interface{} { if t.IsZero() { return nil } buf := make([]byte, 0, len(time.RFC3339)) buf = t.UTC().AppendFormat(buf, time.RFC3339) return string(buf) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 5.2K bytes - Viewed (0)