DateMath class
日期计算相关方法
Constructors
- DateMath()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDaysOfMonth(
int month, {int? year}) → int - 获得每个月的天数,闰月也就是2月通过年获取
-
isLeapYear(
{int? year}) → bool - 是否为闰年
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited