How to check that a particular value is epoch seconds?

how to verify that the following is epoch time.
that is if i have given some random value like 34600 , how can i know it is
epoch seconds

I could be epoch seconds or not, you cannot tell by simply looking at a number.

i didn't get you , actually i am asking that if certain epoch value is given then how can i verify it that it is epoch time

Any value between 0 and $(date +%s) can be an epoch value

And numbers larger than that if the epoch value refers to some point-in-time in the future..

The standards say that the type time_t is an integral type. They don't specify whether the type is signed or unsigned. On systems with a signed 64-bit time_t, any time from the big bang to the expected collapse of the universe, could be represented as a value specifying seconds before or after the epoch.

3 Likes