Temporal.PlainDateTime.prototype.era
Temporal.PlainDateTime 实例的 era 访问器属性会返回一个特定于日历的、小写的字符串,表示此日期的时代,如果日历不使用时代(例如 ISO 8601),则返回 undefined。era 和 eraYear 一起唯一标识日历中的一年,就像 year 一样。它取决于 日历。
era 的设置访问器是 undefined。您不能直接更改此属性。请使用 with() 方法创建一个具有所需新值的 Temporal.PlainDateTime 对象。
有关一般信息和更多示例,请参见 Temporal.PlainDate.prototype.era。