If you need to know how long your SAP system has been running since the last restart, there are two possibilit...
1. Use transaction ST02 -> 2nd line: Startup: dd.mm.yyyy hh:mm:ss
2. Use transaction AL11 -> DIR_HOME -> have a look in file: /USR/SAP/<SID>/DVEBMGS<ID>/WORK/sapstart.log