public DateTimeInterface::getDateTime()
Interface for dates, optionally including a time. Hierarchy interface \Drupal\Core\TypedData\Type\
public DateTimeInterface::setDateTime(DrupalDateTime