Subject: | Use unpack() to get the boottime value on *bsd |
On FreeBSD, at least, we can do something like this to get the boottime,
and avoid the need for external date parsing modules:
$boottime=`sysctl -b kern.boottime`;
print localtime(unpack("l",$boottime))."\n"';