On Tue, 2007-11-20 at 03:40 +0100, Carlos E. R. wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> 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.
> 
> - -- 
> Cheers,
>         Carlos E. R.
> 

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.

> 
> ---Bryen---

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to