IDKitTimeFormat class

Constructors

IDKitTimeFormat()

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

dateFromInt(int time, TimeUnit unit) DateTime
Get time object with timestamp.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stringFrom(DateTime dateTime, String format) String
Get the time formatting result in the specified format.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromInt(int time, {String format = 'yyyy-MM-dd hh:mm:ss', TimeUnit timeUnit = TimeUnit.millisecond}) String
Get the time string in the specified format from the digital timestamp. time Timestamp to be processed. format Format time string. timeUnit The unit of the timestamp to be processed.
fromNow({String format = 'yyyy-MM-dd hh:mm:ss'}) String
Get the specified format time string from the current timestamp. format Format time string.
fromString(String time, {String format = 'yyyy-MM-dd hh:mm:ss', TimeUnit timeUnit = TimeUnit.millisecond}) String
Get the specified format time string from the string timestamp. time Timestamp to be processed. format Format time string. timeUnit The unit of the timestamp to be processed.