# HG changeset patch # User HackEso # Date 1574022642 0 # Node ID f35125e004032f64eb84c8255eee0f301b52ee60 # Parent ec79f376cd1a5e68cbd05025b38860869442f0b4 fetch /hackenv/bin/uptime https://hack.esolangs.org/get/bin/uptime diff -r ec79f376cd1a -r f35125e00403 bin/uptime --- a/bin/uptime Sun Nov 17 20:18:33 2019 +0000 +++ b/bin/uptime Sun Nov 17 20:30:42 2019 +0000 @@ -1,4 +1,5 @@ #!/usr/bin/python3 +# (/usr/bin/uptime -p) is broken, so here's a reimplementation boottime = 1245511822 import sys, os, time helpmsg = "\nUsage:\n uptime [options]\n\nOptions:\n -p, --pretty show uptime in pretty format\n -h, --help display this help and exit\n -s, --since system up since\n -V, --version output version information and exit\n\nFor more details see uptime(1)."