Jiffy class

Constructors

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

Properties

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

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 nonexistent 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>