DateUtils class

Constructors

DateUtils()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic 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>
const ['yyyy', '-', 'mm', '-', 'dd', 'T', 'HH', ':', 'nn', ':', 'ss']