I need to get the date when a particular process was started by PID.
For this purpose, I use:
stat -c %y /proc/PID
In the output, I get the date in the following format:
2021-07-04 11:00:20.352976946 +0300'
But I need it in seconds since the epoch.
Is it possible somehow?
Thanks
man stat
for example