On Monday 2007-11-19 21:59, Bryen wrote: > On Tue, 2007-11-20 at 03:40 +0100, Carlos E. R. wrote: > > The Monday 2007-11-19 at 13:06 -0600, Bryen wrote:
> > > 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? > > [EMAIL PROTECTED]:~> date --date="2007-1-1 100 minutes" > > Mon Jan 1 01:40:00 CET 2007 > > > > Maybe it can be refined, but you can see it does the conversion of 100 > > minutes. > That's an interesting variation of the date command. And I'm certainly > going to keep that in mind should the need for that type of variation > arise. But in my script case, I was looking to convert a value into > minutes/seconds not relative to clock time. My itchy trigger finger deleted several emails in the thread. Did anyone refine the date cccommand??? $ date --date="2007-1-1 100 seconds" +"This is %M:%S minutes" This is 01:40 minutes Thanks, Ken -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
