Hi, problems with method getDate(String , Calendar)
Fausto Lelli <[email protected]> Mon, 15 Sep 2008 16:58:04 +0200
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to read the content of a TIME field with the method getTime(String, Calender). The content of the field is "6:01" and I would like to read the number of milliseconds that correspont to that time. It should be (6 x 60 + 1) * 60 * 1000 = 2166000 instead I get 18006000 which seems to correspont to 5 hours 1 min (5 x 60 + 1) * 60 * 1000. Since I live in GMT + 01 I figure out that this was due to the fact that my timezone is shifted of one hour in respect to GMT. I tried several workaround for this, including using the method getTime(String, Calender) with the correct timezone info set, but nothing seems to work. Has anybody any ideas about this? Thanks in advance. Fausto. -- MySQL Java Mailing List For list archives: http://lists.mysql.com/java To unsubscribe: http://lists.mysql.com/[email protected]