On Tue, 2007-11-20 at 00:03 +0100, Theo v. Werkhoven wrote: > Mon, 19 Nov 2007, by [EMAIL PROTECTED]: > > > For all you scripting gurus out there. Can you help me out? > > > > I'm trying to convert a value to an output to the user of > > minutes:seconds. > > > > For example: > > if $A=100 (for seconds) > > Then echo "This is 1:40 minutes" > > > > How would I do this? > > $ A=100 > $ python -c 'import time,sys; \ > print "This is %d:%d minutes" % \ > (time.localtime(float(sys.argv[2]))[4:6])' - $A > This is 1:40 minutes
I have no idea what I am seeing, but it was just sweet enough to work! THANKS! -- ---Bryen--- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
