DateExtractionField<T extends Object>
enum
Fields that can be extracted from DateTime values in SQL.
Values
-
year
→ const DateExtractionField<
int> -
Extracts the DateTime.year.
-
month
→ const DateExtractionField<
int> -
Extracts the DateTime.month.
-
day
→ const DateExtractionField<
int> -
Extracts the DateTime.day.
-
hour
→ const DateExtractionField<
int> -
Extracts the DateTime.hour.
-
minute
→ const DateExtractionField<
int> -
Extracts the DateTime.minute.
-
second
→ const DateExtractionField<
int> -
Extracts the DateTime.second.
-
date
→ const DateExtractionField<
String> -
Extracts the DateTime.year, DateTime.month and DateTime.day fields in the format
year-month-day. -
time
→ const DateExtractionField<
String> -
Formats this datetime in the format
hour:minute:second. -
datetime
→ const DateExtractionField<
String> -
Formats this datetime in the format
year-month-day hour:minute:second. -
unixepoch
→ const DateExtractionField<
int> -
Extracts the unix timestamp (in seconds) from this value.
-
julianday
→ const DateExtractionField<
double> -
Formats this datetime in the Julian day format - a fractional number of days since noon in Greenwich on November 24, 4714 B.C.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
DateExtractionField< Object> > - A constant List of the values in this enum, in order of their declaration.