On Fri, Mar 6, 2009 at 9:18 PM, Phil Hagelberg <p...@hagelb.org> wrote: > > Allen Rohner <aroh...@gmail.com> writes: [...] >> One of the large advantages of Joda is that the API is constructed in >> such a way that it is obvious what will happen. For example, there are >> two ways to specify a duration, an Instant and a Partial. An Instant >> is used to say "now + 86400 seconds". A partial is used to say "now + >> 1 week". Those are two different operations because they can have two >> different results depending on the current year and timezone. > > What this means to me is that the earlier, later, and time-between > functions will need to behave differently if the units used are > variable-length (days and up) vs invariable (seconds, minutes, hours). [...]
Just to be pedantic, minutes are also occasionally variable: http://en.wikipedia.org/wiki/Leap_second -- Michael Wood <esiot...@gmail.com> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---