Textclock - Displays current time as text - Printable Version +- nixers (https://nixers.net) +-- Forum: Development & Graphics (https://nixers.net/Forum-Development-Graphics) +--- Forum: Programming On Unix (https://nixers.net/Forum-Programming-On-Unix) +--- Thread: Textclock - Displays current time as text (/Thread-Textclock-Displays-current-time-as-text) |
Textclock - Displays current time as text - Jayro - 01-09-2012 Hey guys, This is a quick script I put together to display the time in my DWM status bar. Instead of displaying the time like 1:34, it prints out oneTHIRTYfour. Feel free to use / change it as much as you want. The code could be cleaned up but like I said this was a 5 minute thing. :) Code: #! /usr/bin/python RE: Textclock - Displays current time as text - Jayro - 01-09-2012 (01-09-2012, 02:19 PM)shix Wrote: Nice script. Why do you prefer text over numbers when displaying time by the way? I am not sure. Everyone else uses numbers, so why not be different? RE: Textclock - Displays current time as text - Jayro - 02-09-2012 (02-09-2012, 12:47 AM)NeoTerra Wrote:(01-09-2012, 02:19 PM)shix Wrote: Nice script. Why do you prefer text over numbers when displaying time by the way? You know me, always have to be different. Thanks! RE: Textclock - Displays current time as text - Shiru - 02-09-2012 Nice, such scripts can always come in handy for things like conky or other programs that display information. RE: Textclock - Displays current time as text - FreeBSD - 04-09-2012 Haha I have this on my phone and is awesome to put on my computer!! |