Fastest way I know of is in perl

print scalar epochtime

Where epochtime is your numeric epoch time or variable. 

Kevin

--------------------------
Sent from my BlackBerry Wireless Handheld


-----Original Message-----
From: [email protected] <[email protected]>
To: InterMapper Discussion <[email protected]>
Sent: Sat Jun 04 14:54:50 2005
Subject: [IM-Talk] SNMP Probe: Converting Integer to human uptime ?

Hi All,

If anyone have pointers, please let me know.

I'm doing  a SNMP probe and have an Interger returned that is the services 
uptime in sec's.

I think my mind turned on me, as I can't seem to figure out how to get that 
shown as a human readable string.

The strftime functions seem to return the time in relation to unix posix time 
(01011970)

Any pointers?





    Jakob Peterh�nsel




"Tell me why, don't we try, not to break our hearts 

  and make it so hard for our selfs"

P.S.B. 1987




Email:     [EMAIL PROTECTED]

AIM:         Marook

Phone:     +45 22684961



____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]

Reply via email to