TimeFormatters class
Time formatting utilities
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
formatDateTimeFull(
DateTime date, [String locale = 'en_US']) → String - Formats date and time in full format
-
formatDateTimeLong(
DateTime date, [String locale = 'en_US']) → String - Formats date and time in long format
-
formatDateTimeMedium(
DateTime date, [String locale = 'en_US']) → String - Formats date and time in medium format
-
formatDateTimeShort(
DateTime date, [String locale = 'en_US']) → String - Formats date and time in short format
-
formatTime12Hour(
DateTime date, [String locale = 'en_US']) → String - Formats time in 12-hour format with AM/PM (e.g., "2:30 PM")
-
formatTime12HourWithSeconds(
DateTime date, [String locale = 'en_US']) → String - Formats time with seconds in 12-hour format (e.g., "2:30:45 PM")
-
formatTime24Hour(
DateTime date, [String locale = 'en_US']) → String - Formats time in 24-hour format (e.g., "14:30")
-
formatTime24HourWithSeconds(
DateTime date, [String locale = 'en_US']) → String - Formats time with seconds in 24-hour format (e.g., "14:30:45")
-
formatTimeWithMilliseconds(
DateTime date) → String - Formats time with milliseconds (e.g., "14:30:45.123")