Suppose I have a timestamp base field on an entity type. I can do $entity->timefield->value and get the UNIX timestamp.
But how do I get a DateTime object from this?
I can see there is a Timestamp::getDateTime() method which does exactly what I want. But that's the DataType class.
The field definition, TimestampItem, defines the 'value' property as a 'timestamp', so that is the Timestamp datatype. But I can't figure out how to get from one to the other.