#13679: Implement a Relative DateTime Formatter
-------------------------------+----------------------------
Reporter: akshay | Owner: pulkomandy
Type: task | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits/Locale Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
-------------------------------+----------------------------
Comment (by pulkomandy):
The ideal solution would be that BDateTime gets operators (+, -, etc)
implemented, allowing us to perform date math easily on it (substracting a
date from another returns a duration, etc). For these operators to make
sense, the dates need to be aware of the timezone and DST setting (so you
can substract two dates which are in different timezones or before/after
DST and still get meaningful results). This means a rather large rework of
BDateTime, however.
On 32-bit Haiku, time_t stops working in 2038 so I try to avoid it as much
as possible. 2038 is not this far away anymore. But given that
BDurationFormat is already done this way, I guess we can let that issue on
the side for now and merge the patch anyway.
--
Ticket URL: <https://dev.haiku-os.org/ticket/13679#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.