# Time

> Time 类型是对 time.Time 的封装，支持正确地序列化为 YAML 和 JSON 格式。该类型还针对 time 包提供的许多工厂方法提供了相应的封装版本。

---

LLMS index: [llms.txt](/llms.txt)

---

<!--
api_metadata:
  apiVersion: "meta/v1"
  import: "k8s.io/apimachinery/pkg/apis/meta/v1"
  kind: "Time"
content_type: "api_reference"
description: "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON.  Wrappers are provided for many of the factory methods that the time package offers."
title: "Time"
weight: 570
auto_generated: true
-->

`apiVersion: meta/v1`

`import "k8s.io/apimachinery/pkg/apis/meta/v1"`

## Time {#Time}

<!--
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON.  Wrappers are provided for many of the factory methods that the time package offers.
-->
Time 类型是对 `time.Time` 的封装，支持正确地序列化为 YAML 和 JSON 格式。
该类型还针对 time 包提供的许多工厂方法提供了相应的封装版本。

<hr>
