in reply to Re^2: Goofy Date and Time Think
in thread Goofy Date and Time Think
MS timestamps are 100 nanosecond units (1e-7) since 1 Jan, 1601.
Unix timestamps are seconds (plus decimals?) since 1 Jan 1970.
So to convert Unix style to MS, you add 11644473600 and multiply by 1e7.
To go the other way you divide by 1e7, subtract 11644473600, and truncate to an integer.
Where does the value, 1134744389.41727 come from? and what do you want to do with it?
It appears to be a unix timestamp from a few days ago:
print scalar localtime 1134744389.41727;; Fri Dec 16 14:46:29 2005
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Goofy Date and Time Think
by nanojack (Initiate) on Dec 21, 2005 at 21:54 UTC |