Api

Dateutils

OpenAPI > DateUtils

OpenAPI.DateUtils class

日期工具

Signature:

class DateUtils

Properties

Property

Modifiers

Type

Description

dateToTimestamp

static

(date: string) => number

日期转时间戳

timestampToDate

static

(timestamp: number, data_type?: '' | 'y' | 'm' | 'd' | 'h' | 'i' | 's') => string | number | undefined

时间戳转日期


Copyright © 2021 - 2025