# timeFormat 时间格式化方法

# Api域:

const timeFormat = kreator.utils.timeFormat:

# timeFormat.getFullDateParams(time)

通过时间戳(毫秒数)转换为标准的年月日时分秒的数值。

属性 类型 默认值 必填 说明
time number '' 时间戳,单位为毫秒

# 返回值

FullDateParams 标准时间数值

字段名称 类型 描述
year number 年份
month number 月份
day number 日期
hour number 小时
minute number 分钟
second number 秒数