DateTimeX extension
- on
Properties
- constellation → Constellation
-
星座
no setter
- isLastYear → bool
-
no setter
- isToday → bool
-
no setter
- isTomorrow → bool
-
no setter
- isYesterday → bool
-
no setter
Methods
-
asDay(
) → DateTime -
asMonth(
) → DateTime -
asYear(
) → DateTime -
copyWith(
{int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond, int? microsecond}) → DateTime -
dayOfYear(
) → int -
format(
[String format = 'yyyy-MM-dd HH:mm:ss']) → String -
inLastDay(
int days) → bool -
是否最近
days
天内 -
isSameDay(
DateTime other) → bool -
Md(
) → String -
nextMonth(
) → DateTime - 下一个月
-
prevMonth(
) → DateTime - 前一个月
-
yMd(
) → String