0.1.7
New methods to convert to native DateTime
objects:
LocalDate::toDateTime()
LocalTime::toDateTime()
LocalDateTime::toDateTime()
This makes these methods in line with their fromDateTime()
counterparts.
Note: even though these classes represent partial date-time concepts, PHP merges all these concepts into a single DateTime
class, so it is relevant to be able to easily export them as native PHP date-times, with sensible defaults.