[Veritas-bu] bpdbjobs output question
2004-03-22 22:52:46
Subject: |
[Veritas-bu] bpdbjobs output question |
From: |
David Rock <dave-bu AT graniteweb DOT com> (David Rock) |
Date: |
Mon, 22 Mar 2004 21:52:46 -0600 |
--NDin8bjvE/0mNLFQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
* Dannhorn, Michael IZ/HZA-ICS <dannhmch AT de.ina DOT com> [2004-03-22 15:01]:
> Hi,
>=20
> When I try to retrieve the acitvity logs I get 'Start Time' and 'End Tim=
e' in 'ticks' like '1079904902'.
> Who could help me to convert (VB) the ticks in date and time?
Look for VB equivalents of localtime and strftime. In python, I do this:
import time
ten_digit =3D 1079904902
print '%d is %s' %\
( ten_digit,=20
time.strftime('%d/%b/%Y %H:%M:%S',
time.localtime(ten_digit)))
This gives an output like this:
1079904902 is 21/Mar/2004 15:35:02
--=20
David Rock
david AT graniteweb DOT com
--NDin8bjvE/0mNLFQ
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAX7SOMrO4/Yb/xwYRApIvAJ4r2rZN7VNurLiSJkVHxo4h1tl0SACguGjT
8Z1kE+O/k3J1DzewgwiRA1w=
=xlar
-----END PGP SIGNATURE-----
--NDin8bjvE/0mNLFQ--
|
|
|