CalendarTimeUtil class
日期计算工具
Constructors
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
-
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
Static Properties
- daysInMonth → List
-
no setter
Static Methods
-
getDaysInMonth(
int year, int month) → int - 根据年月取得天数
-
getFirstDayInMonthWeekDate(
int year, int month, MaterialLocalizations localizations) → int - 得到这个月第一天是周几
-
getTimeString(
num currentYear, num currentMonth, num day) → String -
getWeekDay(
DateTime dateTime) → dynamic -
getWeeksIn(
int currentYear, int currentMonth, MaterialLocalizations localizations) → int -
monthDelta(
DateTime startDate, DateTime endDate) → int - 月份总页数
-
numberOfPlaceHolderForMonth(
int year, int month, MaterialLocalizations localizations) → int - 每个月空出来的天数
-
weekDelta(
DateTime startDate, DateTime endDate, MaterialLocalizations localizations) → int - 星期总页数