how to deal with international time?
Posted
by
alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2011-01-31T14:29:21Z
Indexed on
2011/01/31
15:26 UTC
Read the original article
Hit count: 161
i build a new website.but the host is in USA.i am not in USA. i need get the time on the website page to compare with one local Variable. But because of time difference,it has 8 hous difference?how to solve this problom?
my code
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
java.util.Date currentTime = new java.util.Date();
String dateString = formatter.format(currentTime); `
how to revise these code ?
© Stack Overflow or respective owner