[OCP 11 Complete Study Guide] [OCP 11 Programmer I Book] [OCP 11 Programmer II Book] [OCP 11 Practice Tests Book] [OCA 8 Book] [OCP 8 Book] [OCP 8 Practice Tests Book] [Blog]
Not according to the documentation. But maybe there's a timezone issue getting in the way. Anyway, I would go with Scott's suggestion of extracting the getTime() values and comparing those. (Actually just looking at them might tell you something.)Originally posted by Jon Parise:
I know java.sql.time is just a wrapper around Date so maybe the Date portions are different.
[OCP 11 Complete Study Guide] [OCP 11 Programmer I Book] [OCP 11 Programmer II Book] [OCP 11 Practice Tests Book] [OCA 8 Book] [OCP 8 Book] [OCP 8 Practice Tests Book] [Blog]
Originally posted by Scott Selikoff:
If you're seeing something odd its probably related to time zone. Keep in mind everything is stored in UTC internally, but when its read it may be converted to what it 'thinks' is your local.
Make sure your viewing things in a consistent format such as UTC. That's part of why I prefer the epoch getTime() long value... its a number always calculated in UTC.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |