DateTimeUtils class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
convertTimeStampToDateString (int microseconds , String format )
→ String
Converts a timestamp represented as microseconds since epoch to a formatted date string.
@param microseconds The timestamp to convert, represented in microseconds since epoch.
@param format The desired format of the output date string.
@return The formatted date string representing the converted timestamp.
convertTwoDigitsForDate (int date )
→ String
Checks if the given integer represents a two-digit date, and returns it in a standardized format.
If the integer is not two digits long, it prefixes a '0' to the date.
durationToString (Duration duration )
→ String
Converts a Duration object to a formatted string representation of time.
getCallLogDate ({required int microSeconds , String format = "dd-MMM" })
→ String
Generates a Date String indicating the date of a call based on its call log time.
Generates a header message indicating the date of a message based on its sending time,
allowing customization of the date format.
getDateString (int microSeconds , String format )
→ String
Converts a timestamp in microseconds to a formatted date string according to the specified format.
getMonth (int num )
→ String
Returns the name of the month corresponding to the given integer.
getRecentChatTime (BuildContext context , int ? epochTime )
→ String
isToday (int microseconds )
→ bool
Checks if the given microseconds
value corresponds to the current date.
isYesterday (int microseconds )
→ bool
Checks if the provided microseconds represent a date that occurred yesterday
mirrorfly_uikit_plugin 2.0.5