P
P.Hill
Roedy said:Just because I am not persuaded by your arguments does not necessarily
mean I did not read or understand them.
Obviously, Calendar is not a complete replacement for Date. It is too
fat. It is designed for doing date calculation, not just transporting
a date/time as an object which is the new function of Date.
Sounds like we do nearly agree, despite your complaints and
code suggesting the contrary. Oh and being fat comes (mostly) with
dealing with amazing kludgy world of timezones, daylight savings
and our hodgepodge of a calendar.
I find your patronising unusually inappropriate.
Roedy, I've have been wading through your Date Gotchas and articles
since you wrote them. There still seem to be way too many complaints
about the API and trivialities like the sad name of the class and not
enough a discussion of dates vs. datetimes vs. timestamps, for those who
actually need to understand and use dates AND times.
I helped persuade Sun they needed a replacement..
Which of course they had to do through deprecation for compatibility
reasons, so complaining about a bad choice of name which had to be
retained seems like a waste of bandwidth.
Speaking of conflagulating dates vs times and datetimes:
I'm the guy who wrote BigDate, a Date replacement
Of course BigDate is a date object while java.util.Date contains
date and time, so one doesn't replace the other, except in
a common but useful subset of uses for dates only, which apparently
includes some use in:
[...] satellite communication networks.
Congratulations on that (Yes, I'm serious).
But for your readers you might want to update your bigdate page
http://mindprod.com/jgloss/bigdate.html
"BigDate differs from Sun's Date in that it handles dates prior to 1970"
hasn't been the case for going on half a decade now. I believe it all
happened when JDK 1.1 came out.
"unlike Sun's Date which uses 00=Jan" -- no actually Calendar uses 0=
Calendar.JANUARY, which I believe is a bit like BigDates days of the
week which has Sunday=0. The uses of value by Date is mostly mute since
all of those parts of the API are deprecated.
Since I haven't used BigDate myself I hadn't visited this page
in a very long time, so I hadn't noticed until now the above two
old typos. Apologies for not pointing it out sooner, since I've often
been found trying to improve information and uses of Date, Calendar etc.
on this list.
peace be with you,
-Paul
p.s. glad to see you're back on your feet and working again.