Hi,
I know in C you use the time() function to get the number of seconds since the epoch, but I can't find a command that does the same thing. There must be a standard UNIX command that does it somewhere right?
If you are using ksh93 you can also use printf "%(%s)T" to return the number of seconds since the Epoch. This avoids a call to an external utility such as date.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.