SlickDateTime class

Available extensions

Constructors

SlickDateTime(DateTime _inner)
const
SlickDateTime.fromMicrosecondsSinceEpoch(int microsecondsSinceEpoch, {bool isUtc = false})
factory
SlickDateTime.fromMillisecondsSinceEpoch(int millisecondsSinceEpoch, {bool isUtc = false})
factory
SlickDateTime.local(int year, [int month = 1, int day = 1, int hour = 0, int minute = 0, int second = 0, int millisecond = 0, int microsecond = 0])
factory
SlickDateTime.now()
factory
SlickDateTime.utc(int year, [int month = 1, int day = 1, int hour = 0, int minute = 0, int second = 0, int millisecond = 0, int microsecond = 0])
factory

Properties

day int
no setter
hashCode int
The hash code for this object.
no setteroverride
hour int
no setter
inner DateTime
no setter
isMin bool
no setter
isUtc bool
no setter
microsecond int
no setter
microsecondsSinceEpoch int
no setter
millisecond int
no setter
millisecondsSinceEpoch int
no setter
minute int
no setter
month int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second int
no setter
timeZoneName String
no setter
timeZoneOffset Duration
no setter
weekday int
no setter
year int
no setter

Methods

add(Duration duration) SlickDateTime
compareTo(AnyDate other) int
copyWith({int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond, int? microsecond, bool? isUtc}) SlickDateTime
difference(AnyDate other) Duration
formatDate() String

Available on SlickDateTime?, provided by the DateTimeUtils extension

Formats the date as day Mon year
formatDateTime() String

Available on SlickDateTime?, provided by the DateTimeUtils extension

Formats the date and time as dd Mon yyyy HH:mm
formatShortDate() String

Available on SlickDateTime?, provided by the DateTimeUtils extension

Formats the date as a zero-padded short form: dd Mon yyyy
isAfter(AnyDate other) bool
isAtSameMomentAs(AnyDate other) bool
isBefore(AnyDate other) bool
monthName() String

Available on SlickDateTime?, provided by the DateTimeUtils extension

Returns the abbreviated month name (e.g., "Jan", "Feb", etc.)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subtract(Duration duration) SlickDateTime
toIso8601String() String
toLocal() SlickDateTime
toString() String
A string representation of this object.
override
toUtc() SlickDateTime

Operators

operator ==(Object other) bool
The equality operator.
override

Static Properties

min SlickDateTime
no setter

Static Methods

tryParse(String s) SlickDateTime?