Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get time in seconds/mili seconds

 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can someone give me some guide on obtaining gm time on a particular date? For instance, how can i get the seconds since epoch have evolved on 2001 Oct 30 00:00:00? Thanks a lot.
 
Marilyn de Queiroz
Sheriff
Posts: 9066
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a method in the Date class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic