Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to get GMT time in Millis?!

user12076936Sep 5 2009 — edited Sep 5 2009
Hello,
I'm trying to get the currentime in millis as per GMT timezone.
GregorianCalendar c = new GregorianCalendar(TimeZone.getTimeZone("GMT"));

				java.util.Date d =  c.getTime();
				timeNow =  new Timestamp(d.getTime());
This is just one of the attempts. Could someone point me out with code, without having to use Joda Library?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2009
Added on Sep 5 2009
13 comments
648 views