ModelTimestamp class
Define the field as a timestamp.
The base value is given as value. If not given, the current time is set.
By passing this to the server, the timestamp on the server side is stored as data.
フィールドをタイムスタンプとして定義します。
ベースの値をvalueとして与えます。与えられなかった場合現在時刻がセットされます。
これをサーバーに渡すことでサーバー側のタイムスタンプがデータとして保存されます。
- Inheritance
-
- Object
- ModelFieldValue<
DateTime> - ModelTimestamp
- Available Extensions
- Annotations
Constructors
- ModelTimestamp([DateTime? value])
-
Define the field as a timestamp.
constfactory
- ModelTimestamp.fromJson(DynamicMap json)
-
Convert from
json
map to ModelTimestamp.factory - ModelTimestamp.fromServer([DateTime? value])
-
Used to disguise the retrieval of data from the server.
constfactory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → DynamicMap -
Methods for Json serialization.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator <(
ModelTimestamp other) → bool - Compare with other ModelTimestamp.
-
operator <=(
ModelTimestamp other) → bool - Compare with other ModelTimestamp.
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
ModelTimestamp other) → bool - Compare with other ModelTimestamp.
-
operator >=(
ModelTimestamp other) → bool - Compare with other ModelTimestamp.