fromDateTime method

Timestamp fromDateTime(
  1. DateTime dateTime
)

Creates a new instance from dateTime.

Time zone information will not be preserved.

Implementation

static Timestamp fromDateTime($core.DateTime dateTime) {
  final result = create();
  $mixin.TimestampMixin.setFromDateTime(result, dateTime);
  return result;
}