Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split DateTime into Date and Time types
The DateTime type is now an inline type built on top of two newly introduced types: std.time.Date and std.time.Time. The Date type stores the date components without a timezone, while the Time type stores the time components, also without a timezone. The UTC offset in turn is stored in the DateTime type. In addition, DateTime.local replaces the old DateTime.new method and DateTime.new is now used to construct a DateTime from a Date, Time and UTC offset. DateTime is _not_ a `copy` type as we may need to store additional non-copy data in the future, such as more detailed timezone related objects. This fixes #309. Changelog: changed
- Loading branch information