DateUtils 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 Methods
-
convertToDateTime(
{String? dateString, int? timeInMillis}) → DateTime? -
convertToString(
{DateTime? dateTime, int? timeInMillis, List< String> ? dateFormat}) → String? -
convertToTimeInMillis(
{DateTime? dateTime, String? dateString}) → int? -
dayAfterTomorrow(
) → int -
dayAfterTomorrowAsDateTime(
) → DateTime -
format(
{DateTime? dateTime, List< String> ? dateFormat}) → String? -
isWithin24Hours(
{DateTime? dateTime, int? millisecondsSinceEpoch}) → bool -
now(
) → int -
nowAsDateTime(
) → DateTime -
nowUntilHour(
) → int -
nowUntilHourAsDateTime(
) → DateTime -
nowUntilMinutes(
) → int -
nowUntilMinutesAsDateTime(
) → DateTime -
nowUntilSeconds(
) → int -
nowUntilSecondsAsDateTime(
) → DateTime -
today(
) → int -
todayAsDateTime(
) → DateTime -
tomorrow(
) → int -
tomorrowAsDateTime(
) → DateTime -
tomorrowSameTime(
) → int -
tomorrowSameTimeAsDateTime(
) → DateTime -
yesterday(
) → int -
yesterdayAsDateTime(
) → DateTime
Constants
-
DATE_FORMAT
→ const List<
String>