currentDateTimeString

open fun currentDateTimeString(pattern: String): String

根据指定的字符串格式输出当前时间

Parameters

pattern

时间字符串格式


使用默认的时间格式获取当前时间的字符串