6 lines
159 B
Bash
6 lines
159 B
Bash
#!/usr/bin/env sh
|
|
# DEPENDS ON: uptime, awk, date, $UPFORMAT
|
|
|
|
buptime() {
|
|
printf '%s' "$(date -d@"$(awk '{print $1}' /proc/uptime)" -u -- "+$UPFORMAT")"
|
|
}
|