DateTimeExtension extension

日期扩展

on

Properties

isToday bool

Available on DateTime, provided by the DateTimeExtension extension

是否为今天
no setter
isTomorrow bool

Available on DateTime, provided by the DateTimeExtension extension

是否为明天
no setter
isYesterday bool

Available on DateTime, provided by the DateTimeExtension extension

是否为昨天
no setter
timeStamp int

Available on DateTime, provided by the DateTimeExtension extension

timestamp seconds
no setter

Methods

format([String format = "yyyy-MM-dd HH:mm:ss"]) String

Available on DateTime, provided by the DateTimeExtension extension

获取指定格式的当前时间