Date.getMilliseconds()
When creating a Date object, you can pass the number of milliseconds since 1-1-1970. How would one ever compute such a figure?
What I want to do is compute elapsed days between two dates. If I had relative milliseconds, I could do that. Is there another way to do that?
I mistakenly assumed the setMilliseconds() and getMilliseconds() functions dealt with the 1-1-70 relative milliseconds value. But I now know they are associated with the time value of the Date object.
Is there a way to access the 1-1-70 relative milliseconds of a Date object?
Thanks,
Ken
|