Quote:
Originally Posted by
expert
i tried "istat" but its not giving the epoch time
"istat" is displaying the mtime, atime and ctime down to the seconds.
You can easily calculate the epoch time from a given date: POSIX.1 defines it as the seconds passed since Jan 1st, 1970, 0:00:00. The following additional rules apply:
- leap seconds are not taken into account, each day is exactly 86400 seconds
- leap years are: all years divisible by 4, save for the years divisible by 100 but not by 400
- notice that non-synchronous NTP time is NOT POSIX-compatible
Many systems in fact are not POSIX-compatible in this regard, because they use Mills-algorithm-based NTP Stratum-2-servers.
I hope this helps.
bakunin