Jiffy class Null safety

Constructors

Jiffy([dynamic input, String? pattern])
Jiffy.unix(int timestamp)

Properties

date int
read-only
dateTime DateTime
read-only
day int
read-only
dayOfYear int
read-only
daysInMonth int
read-only
E String
read-only
EEEE String
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
Hm String
read-only
Hms String
read-only
hour int
read-only
isLeapYear bool
read-only
j String
read-only
jm String
read-only
jms String
read-only
LLL String
read-only
LLLL String
read-only
Md String
read-only
MEd String
read-only
millisecond int
read-only
minute int
read-only
MMM String
read-only
MMMd String
read-only
MMMEd String
read-only
MMMM String
read-only
MMMMd String
read-only
MMMMEEEEd String
read-only
month int
read-only
QQQ String
read-only
QQQQ String
read-only
quarter int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
second int
read-only
week int
read-only
year int
read-only
yM String
read-only
yMd String
read-only
yMEd String
read-only
yMMM String
read-only
yMMMd String
read-only
yMMMdjm String
read-only
yMMMEd String
read-only
yMMMEdjm String
read-only
yMMMM String
read-only
yMMMMd String
read-only
yMMMMdjm String
read-only
yMMMMEEEEd String
read-only
yMMMMEEEEdjm String
read-only
yQQQ String
read-only
yQQQQ String
read-only

Methods

add({Duration duration = Duration.zero, int years = 0, int months = 0, int weeks = 0, int days = 0, int hours = 0, int minutes = 0, int seconds = 0, int milliseconds = 0, int microseconds = 0}) Jiffy
clone() Jiffy
diff(dynamic input, [Units units = Units.MILLISECOND, bool asFloat = false]) num
endOf(Units units) Jiffy
format([String? pattern]) String
from(dynamic input) String
fromNow() String
isAfter(dynamic input, [Units units = Units.MILLISECOND]) bool
isBefore(dynamic input, [Units units = Units.MILLISECOND]) bool
isBetween(dynamic inputFrom, dynamic inputTo, [Units units = Units.MILLISECOND]) bool
isSame(dynamic input, [Units units = Units.MILLISECOND]) bool
isSameOrAfter(dynamic input, [Units units = Units.MILLISECOND]) bool
isSameOrBefore(dynamic input, [Units units = Units.MILLISECOND]) bool
local() DateTime
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
startOf(Units units) Jiffy
subtract({Duration duration = Duration.zero, int years = 0, int months = 0, int weeks = 0, int days = 0, int hours = 0, int minutes = 0, int seconds = 0, int milliseconds = 0, int microseconds = 0}) Jiffy
toString() String
A string representation of this object. [...]
inherited
unix() int
utc() DateTime
valueOf() int

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

getAllAvailableLocales() List<String>
isDateTime(dynamic input) bool
isJiffy(dynamic input) bool
locale([String? locale]) Future<Locale>