On Fri, Apr 23, 2010 at 9:16 PM, String sterling.ud...@googlemail.com wrote:
On Apr 23, 2:08 pm, A.TNG tang.j...@gmail.com wrote:
Yes. In my case, I need to get TZ offset as of Jan 1, 1970. And
sometime we pass a minus number to getOffset(), like -360.
OK, cool. That's just not what
On Apr 23, 7:14 am, A.TNG tang.j...@gmail.com wrote:
TimeZone.getDefault().getOffset(0); // returns 3600 (= 10 * 60 * 60 *
1000)
TimeZone.getTimeZone(GMT-9:00).getOffset(0); // returns 3240 (=
9 * 60 * 60 * 1000)
How does this happen? Why this same API getOffset with same
On Fri, Apr 23, 2010 at 4:42 PM, String sterling.ud...@googlemail.com wrote:
On Apr 23, 7:14 am, A.TNG tang.j...@gmail.com wrote:
TimeZone.getDefault().getOffset(0); // returns 3600 (= 10 * 60 * 60 *
1000)
TimeZone.getTimeZone(GMT-9:00).getOffset(0); // returns 3240 (=
9 * 60 * 60
On Apr 23, 11:10 am, A.TNG tang.j...@gmail.com wrote:
Since Alaska is in GMT-9:00, even doesn't include DST, getOffset(0)
should return 3240 (= 9*60*60*1000), right? I cannot understand
why it returns 3600 (=10*60*60*1000). If 3600 is correct,
that means Alaska is in GMT-10:00.
On Fri, Apr 23, 2010 at 6:53 PM, String sterling.ud...@googlemail.com wrote:
On Apr 23, 11:10 am, A.TNG tang.j...@gmail.com wrote:
Since Alaska is in GMT-9:00, even doesn't include DST, getOffset(0)
should return 3240 (= 9*60*60*1000), right? I cannot understand
why it returns 3600
On Apr 23, 2:08 pm, A.TNG tang.j...@gmail.com wrote:
Yes. In my case, I need to get TZ offset as of Jan 1, 1970. And
sometime we pass a minus number to getOffset(), like -360.
OK, cool. That's just not what most people do with getOffset(), so I
thought I should check.
I'm not sure
6 matches
Mail list logo