comparison bin/uptime @ 12139:c2f4b787425f draft

<b_jonas> fetch /hackenv/bin/uptime https://hack.esolangs.org/get/bin/uptime
author HackEso <hackeso@esolangs.org>
date Sun, 17 Nov 2019 19:17:14 +0000
parents db60ce0f0bb3
children 2826c0c87d92
comparison
equal deleted inserted replaced
12138:08fae3c17105 12139:c2f4b787425f
1 #!python3 1 #!/usr/bin/python3
2 boottime = 1245511822 2 boottime = 1245511822
3 import sys, time 3 import sys, 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:]: