Epoch Converter | date time to unix timestamp
TheUnixepoch(orUnixtimeorPOSIXtimeorUnixtimestamp)isthenumberofsecondsthathaveelapsedsinceJanuary1,1970(midnightUTC/GMT),notcountingleapseconds(inISO8601:1970-01-01T00:00:00Z).LiterallyspeakingtheepochisUnixtime0(midnight1/1/1970),butepochisoftenusedasasynonymforUnixtime.Somesystemsstoreepochdatesasasigned32-bitinteger,whichmightcauseproblemsonJanuary19,2038(knownastheYear2038problemorY2038).Theconverteronthispageconvertstimestampsinseconds(10-digit),milliseconds(13-digit)andmicroseconds(16-...
The Unix epoch (or Unix time or POSIX time or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds (in ISO 8601: 1970-01-01T00:00:00Z). Literally speaking the epoch is Unix time 0 (midnight 1/1/1970), but epoch is often used as a synonym for Unix time. Some systems store epoch dates as a signed 32-bit integer, which might cause problems on January 19, 2038 (known as the Year 2038 problem or Y2038). The converter on this page converts timestamps in seconds (10-digit), milliseconds (13-digit) and microseconds (16-digit) to readable dates.
PHPtime() More PHP[1]Pythonimport time; time.time() Source[2]RubyTime.now (or Time.new). To display the epoch: Time.now.to_iPerltime More Perl[3]Javalong epoch = System.currentTimeMillis()/1000; Returns epoch in seconds.C#DateTimeOffset.Now.ToUnixTimeSeconds() (.NET Framework 4.6+/.NET Core), older versions: var epoch = (DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, Da...