Thanks for raising this thread. You're right, time manipulation is a very difficult problem. I should have been more clear about the intent of my library.
My problem is that time handling is not unified in Java. There are at least 4 internal ways Java handles time: java.util.Date java.util.Calendar java.sql.Timestamp java.lang.Long There isn't a good interface unifying the concept of time. The best you can do usually is figure out how to eventually convert each of these to a java.util.Date. This is what motivated the first method, date. (date *some-object*) => java.util.Date It's supposed to be the swiss army knife of date creation. A super- duper factory, if you will. Then once I have a Date (insert zingger here), I know how to construct lots of other time objects. Internally, each function: long-time greg-cal time-map sql-ts calls the date fn. The date adapter fn now sorta behaves like an abstract super type. You raised an excellent point about using Joda. Perhaps there could be something gained by combining Joda's manipulation with a versatile adapter. I think I'll look into trying Joda data types into my adapter fn. Thanks for bringing up this point. On Jun 12, 10:19 am, "AndrewC." <mr.bl...@gmail.com> wrote: > On Jun 12, 2:24 am, Sean Devlin <francoisdev...@gmail.com> wrote: > > > Hey everyone, > > I'm looking for feedback on a date utility library I'm writing. > > Without wanting to seem down on your obvious care and hard work, the > last time this came up the general consensus was that "Date libraries > are much harder then you think. Use Joda!" > > http://groups.google.com/group/clojure/browse_thread/thread/659503e69... > > http://joda-time.sourceforge.net/ --~--~---------~--~----~------------~-------~--~----~ 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 Note that posts from new members are moderated - please be patient with your first post. 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 -~----------~----~----~----~------~----~------~--~---