ExtensionDateTime extension

DateTime 扩展

on

Properties

isLeapYearByYear bool

Available on DateTime, provided by the ExtensionDateTime extension

Return whether it is leap year. 是否是闰年
no setter

Methods

format([DateTimeDist? dist, bool dual = true]) String

Available on DateTime, provided by the ExtensionDateTime extension

转换指定长度的字符串
getDaysForRange(DateTime endDate) List<DateTime>

Available on DateTime, provided by the ExtensionDateTime extension

获取时间区间内所有的日期