Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Number of digits in Epoch time

Tags:

linux

unix

epoch

I'm working on a machine which has some code running on it which sets the time when I set the password. The time set is epoch time, but it has 13 digits in it, and when I wrote a simple program to get the epoch time and ran it on my personal computer running linux, it returns the epoch time which has 10 digits. Would anyone know what the extra three digits signify?

Thanks in advance

like image 848
iman453 Avatar asked Jul 30 '10 18:07

iman453


People also ask

Is epoch time always 10 digits?

No. epoch time is how time is kept track of internally in UNIX. It's seconds, counting upward from January 1st, 1970.

How many digits are in a timestamp in milliseconds?

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.

What is epoch time format?

In a computing context, an epoch is the date and time relative to which a computer's clock and timestamp values are determined. The epoch traditionally corresponds to 0 hours, 0 minutes, and 0 seconds (00:00:00) Coordinated Universal Time (UTC) on a specific date, which varies from system to system.

How is epoch time calculated?

Epoch Time Difference FormulaMultiply the two dates' absolute difference by 86400 to get the Epoch Time in seconds – using the example dates above, is 319080600.


1 Answers

Probably seconds vs milliseconds.

You'd have to consult the specific documentation though.

like image 62
corsiKa Avatar answered Sep 20 '22 14:09

corsiKa