fromDateTime static method
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;
}