DateTimeFormat enum

The DateTime serialization format

  • string a human readable date time string representation
  • stringWithMillis a human readable date time string representation with milliseconds
  • stringWithMicros a human readable date time string representation with microseconds
  • epoch a number representing the seconds since the "Unix epoch" 1970-01-01T00:00:00Z (json space saver!)
  • epochWithMillis a number representing the milliseconds since the "Unix epoch" 1970-01-01T00:00:00Z
  • epochWithMicros a number representing the microseconds since the "Unix epoch" 1970-01-01T00:00:00Z
Inheritance
Implemented types

Constructors

DateTimeFormat(dynamic jsonValue)
const

Values

string → const DateTimeFormat
const DateTimeFormat("s")
stringWithMillis → const DateTimeFormat
const DateTimeFormat("sm")
stringWithMicros → const DateTimeFormat
const DateTimeFormat("su")
epoch → const DateTimeFormat
const DateTimeFormat("e")
epochWithMillis → const DateTimeFormat
const DateTimeFormat("em")
epochWithMicros → const DateTimeFormat
const DateTimeFormat("eu")

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
jsonValue → dynamic
final
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

fromValue(dynamic jsonValue) DateTimeFormat
override

Constants

values → const List<DateTimeFormat>
A constant List of the values in this enum, in order of their declaration.