Forums Register Login

milliseconds in session

+Pie Number of slices to send: Send
Methode of session :-
getCreationTime()
getLastAccessedTime()
these methods returns value in milliseconds, but i am unable to understand (since 1970 part).
can someone please help me to understand this output.
+Pie Number of slices to send: Send
 

Singh Anisha wrote: but i am unable to understand (since 1970 part).
can someone please help me to understand this output.



That's the date which Java uses as the "epoch". Read this for more information https://en.wikipedia.org/wiki/Epoch_%28reference_date%29
+Pie Number of slices to send: Send
Still its not clear to me..
+Pie Number of slices to send: Send
Let's turn it around: if those methods returned a 0, what do you think that would mean?

And the next question: if you write down the number that is returned from one of those methods, and then convert it to years, months, days, etc. (keeping in mind that that number is in milliseconds), what result do you get?
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 687 times.
Similar Threads
Dynamically drawn radio buttons not working in MSIE
Date milliseconds
block timer
Slowing Down a program
CurrentTimeMillis return problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:58:15.