[Veritas-bu] RE: Elapsed Time
2004-05-19 22:53:27
--MGYHOYXEY6WxJCY8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
* ChrisCosta AT tdwaterhouse DOT com <ChrisCosta AT tdwaterhouse DOT com>
[2004-05-19 08:=
57]:
> =20
> Does anyone know of a command that will give you the elapsed time per bac=
kup
> in terms of hh:mm:ss. I am running the bpimagelist command and I can get =
the
> Elapsed Time is seconds, but it is a pain to convert those numbers into
> hh:mm:ss.
Here is a python function that I use to calculate h,m,s. You can adapt
it to whatever language you use:
def sec_to_hms( input ):
input =3D seconds =3D int(input)
hours =3D seconds / 3600
seconds =3D seconds - hours*3600
minutes =3D seconds / 60
seconds =3D seconds - minutes*60
return (hours,minutes,seconds)
--=20
David Rock
david AT graniteweb DOT com
--MGYHOYXEY6WxJCY8
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFArB2mMrO4/Yb/xwYRAktcAKDrGvhfy31V78ZfqLbsPDJGcEOPfACgzn6E
ZplkJJx4StgFrrq+1ObbcCo=
=JQFP
-----END PGP SIGNATURE-----
--MGYHOYXEY6WxJCY8--
|
|
|