comparison bin/uptime @ 12142:ec79f376cd1a draft

<b_jonas> fetch /hackenv/bin/uptime https://hack.esolangs.org/get/bin/uptime
author HackEso <hackeso@esolangs.org>
date Sun, 17 Nov 2019 20:18:33 +0000
parents bbcac610574d
children f35125e00403
comparison
equal deleted inserted replaced
12141:bbcac610574d 12142:ec79f376cd1a
1 #!python3 1 #!/usr/bin/python3
2 boottime = 1245511822 2 boottime = 1245511822
3 import sys, os, time 3 import sys, os, time
4 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)." 4 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)."
5 opt_p, opt_s = 0, 0 5 opt_p, opt_s = 0, 0
6 for a in sys.argv[1:]: 6 for a in sys.argv[1:]: