$uptime = `uptime`; $uptime =~ s/.*(\d+ days, \d+ min).*/$1/;
This doesn't give you seconds, of course.
In reply to Re: Converting Seconds to Nice Format
by Anonymous Monk
in thread Converting Seconds to Nice Format
by Segfault
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |