ModelTimestamp.dateTime constructor
const
ModelTimestamp.dateTime(])
Define the field as a timestamp.
Returns the date and time specified in year
, month
, day
, hour
, minute
, second
, millisecond
, or microsecond
.
By passing this to the server, the timestamp on the server side is stored as data.
フィールドをタイムスタンプとして定義します。
year
、month
、day
、hour
、minute
、second
、millisecond
、microsecond
で指定した日時が返されます。
これをサーバーに渡すことでサーバー側のタイムスタンプがデータとして保存されます。
Implementation
const factory ModelTimestamp.dateTime(
int year, [
int? month,
int? day,
int? hour,
int? minute,
int? second,
int? millisecond,
int? microsecond,
]) = _ModelTimestampWithDateTime;