calendar/date_utils
library
Functions
-
dateToString(DateTime date, {String pattern = "yyyy/MM/dd"})
→ String
-
-
firstday(DateTime d)
→ DateTime
-
-
getMonthDays(int year, int month)
→ int
-
-
getTimeUnitInt(TimeUnit tu)
→ int
-
-
getUpperTime(DateTime dt, TimeUnit tu)
→ DateTime
-
-
intToDate(int y, int m, int d, {int h = 0, int min = 0})
→ DateTime
-
-
intToDateStr(int y, int m, int d)
→ String
-
-
isSelectDate(String selectedStr, int y, int m, int d)
→ bool
-
-
isToday(int y, int m, int d)
→ bool
-
-
lastday(DateTime d)
→ DateTime
-
-
minToHourStr(int i)
→ String
-
-
nextMonth(DateTime date)
→ DateTime
-
-
preMonth(DateTime date)
→ DateTime
-
-
strToDate(String day, {String pattern = "yyyy/MM/dd"})
→ DateTime
-
-
todayStr()
→ String
-