DateTimeUtils extension
- on
Static Methods
-
formatDate(
DateTime? dateTime, {String format = DateFormats.full}) → String -
Available on DateTime, provided by the DateTimeUtils extension
format 转换格式(已提供常用格式 DateFormats,可以自定义格式:'yyyy/MM/dd HH:mm:ss') -
formatDateString(
String dateStr, {bool isUtc = false, String format = DateFormats.full}) → String -
Available on DateTime, provided by the DateTimeUtils extension
-
getDateTime(
String dateStr, {bool isUtc = false}) → DateTime? -
Available on DateTime, provided by the DateTimeUtils extension
根据字符串创建时间 -
millisecondsByStr(
String dateStr, {bool isUtc = false}) → int -
Available on DateTime, provided by the DateTimeUtils extension
根据字符串获取毫秒 -
nowMilliseconds(
) → int -
Available on DateTime, provided by the DateTimeUtils extension
当前时间的毫秒数