// Convert_Slice_string_To_unversioned_Time allows converting a URL query parameter value func Convert_Slice_string_To_unversioned_Time(input *[]string, out *unversioned.Time, s conversion.Scope) error { str := "" if len(*input) > 0 { str = (*input)[0] } return out.UnmarshalQueryParameter(str) }
func (u *Unstructured) GetDeletionTimestamp() *unversioned.Time { var timestamp unversioned.Time timestamp.UnmarshalQueryParameter(getNestedString(u.Object, "metadata", "deletionTimestamp")) if timestamp.IsZero() { return nil } return ×tamp }
func (u *Unstructured) GetCreationTimestamp() unversioned.Time { var timestamp unversioned.Time timestamp.UnmarshalQueryParameter(getNestedString(u.Object, "metadata", "creationTimestamp")) return timestamp }