DateTimeExtension extension

on

Methods

copy({int? year, int? month, int? day, int? hour, int? minute, int? second}) DateTime
时间转换,只支持以下字符串
getDateStr({String? dateSeparate}) String
getFormatStr({DateFormat format = DateFormat.NORMAL, String? dateSeparate, String? timeSeparate}) String
getTimeZone() double
获取当前时间系统的本地时区
isAtSameDayAs(DateTime other) bool
是否时同一天
maxDate(DateTime? other) DateTime
minDate(DateTime? other) DateTime