|
Hi All,
What does the following command do?
perl -MPOSIX -e"print strftime('%Y-%m-%d', localtime(time - 86400))"
TIA
Jaginbox
|
|
|
-e means its a one liner, meaning what follows it be executed directly, even if written in the shell.
86400 is the number of seconds in a day,
time is probably a reference to current time,
so the time there is probably now minus one day.
and the %Y %m and %d are probably deciding how the time is to be displayed.
as for the rest, i dont know.
|
|
|
Thanks for the reply.
I was looking for the MPOSIX actually.
Guess its a standard command.
|
|
|
|
|
|
|
// |