ModelTimestamp.dateTime constructor

const ModelTimestamp.dateTime(
  1. int year, [
  2. int? month,
  3. int? day,
  4. int? hour,
  5. int? minute,
  6. int? second,
  7. int? millisecond,
  8. int? microsecond,
])

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.

フィールドをタイムスタンプとして定義します。

yearmonthdayhourminutesecondmillisecondmicrosecondで指定した日時が返されます。

これをサーバーに渡すことでサーバー側のタイムスタンプがデータとして保存されます。

Implementation

const factory ModelTimestamp.dateTime(
  int year, [
  int? month,
  int? day,
  int? hour,
  int? minute,
  int? second,
  int? millisecond,
  int? microsecond,
]) = _ModelTimestampWithDateTime;