• Post Reply Bookmark Topic Watch Topic
  • New Topic

Timestamping question.  RSS feed

 
Mcgill Smith
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any standred way to timestamp in java?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of timestamp you're talking about?
There's always java.sql.Timestamp and System.currentTimeMillis()
(In any case, I doubt it has anything to do with Security so someone will probably move this post somewhere else)
 
Mcgill Smith
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP Digest Authentication:
Random value that is unique created by the server .
(Clients IP address,followed by a timestamp and then a random chunk of data created by the server. )
This what i was looking for (System.currentTimeMillis())
Thanks.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Java in General (Intermediate) forum. Please continue this discussion there. Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!