datetime - Is UNIX time universal -


i did research on internet still confused. unix time universal time gmt/utc or vary place place local time?

i know unix time counted 1st jan, 1970 00:00:00 gmt. when use gettime() function in java (more date d= new date(); long currenttime d.gettime()) getting unix time in milliseconds. if person , person b use same function sitting in 2 different time zones, same result?

now if person , person b use same function sitting in 2 different time zones, same result?

yes, - assuming clocks both "correct" of course.

the java.util.date class wrapper around "the time since unix epoch, in milliseconds". given unix epoch instant in time (not "midnight on january 1st 1970", number of elapsed milliseconds same wherever are. (ignoring relativity , discussion of leap seconds...)

(side-note: @ unix epoch, wasn't midnight in greenwich. 1am, because uk observing bst @ time. that's british standard time, not british summer time - uk @ utc+1 feb 18th 1968 october 31st 1971. more similar trivia, see noda time user guide trivia page.)


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -