DateUtils class
Helper class for date operations.
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 Properties
- REGEX_AM_PM → RegExp
-
final
- REGEX_APRIL → RegExp
-
final
- REGEX_AUGUST → RegExp
-
final
- REGEX_DATE → RegExp
-
final
- REGEX_DAY → RegExp
-
final
- REGEX_DECEMBER → RegExp
-
final
- REGEX_FEBRUARY → RegExp
-
final
- REGEX_FRIDAY → RegExp
-
final
- REGEX_HOUR → RegExp
-
final
- REGEX_JANUARY → RegExp
-
final
- REGEX_JULY → RegExp
-
final
- REGEX_JUNE → RegExp
-
final
- REGEX_MARCH → RegExp
-
final
- REGEX_MAY → RegExp
-
final
- REGEX_MINUTES → RegExp
-
final
- REGEX_MONDAY → RegExp
-
final
- REGEX_MONTH → RegExp
-
final
- REGEX_MONTHS → RegExp
-
final
- REGEX_NOVEMBER → RegExp
-
final
- REGEX_OCTOBER → RegExp
-
final
- REGEX_SATURDAY → RegExp
-
final
- REGEX_SECONDS → RegExp
-
final
- REGEX_SEPTEMBER → RegExp
-
final
- REGEX_SUNDAY → RegExp
-
final
- REGEX_THURSDAY → RegExp
-
final
- REGEX_TUESDAY → RegExp
-
final
- REGEX_WEDNESDAY → RegExp
-
final
- REGEX_WEEK → RegExp
-
final
- REGEX_WEEKDAY → RegExp
-
final
- REGEX_YEAR → RegExp
-
final
Static Methods
-
getCalendarWeek(
DateTime date) → int -
Calculates the calendar week for the given
date
. -
stringToDateTime(
String s, {DateTime? time}) → DateTime - Converts English textual datetime description to a DateTime object.
Constants
- daysOfWeek → const int
- regexApril → const String
- regexAugust → const String
- regexDecember → const String
- regexFebruary → const String
- regexFriday → const String
- regexJanuary → const String
- regexJuly → const String
- regexJune → const String
- regexMarch → const String
- regexMay → const String
- regexMonday → const String
- regexNovember → const String
- regexOctober → const String
- regexSaturday → const String
- regexSeptember → const String
- regexSunday → const String
- regexThursday → const String
- regexTuesday → const String
- regexWednesday → const String