ExtensionDateTime extension
DateTime 扩展
- on
Properties
- isLeapYearByYear → bool
-
Return whether it is leap year.
是否是闰年
no setter
Methods
-
format(
[DateTimeDist? dist, bool dual = true]) → String - 转换指定长度的字符串
-
getDaysForRange(
DateTime endDate) → List< DateTime> - 获取时间区间内所有的日期