How can I use CDEF to convert longint to xx days yy hours ..

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
nrs
Posts: 6
Joined: Sun Jun 06, 2004 5:18 am
Location: Copenhagen, Denmark

How can I use CDEF to convert longint to xx days yy hours ..

Post by nrs »

How is it possible to converte a longint (uptime in sec's) to somthing like days:hours:min:sec ? (or is it possible at all)

Must I really make a lot of 'sub' CDEF's for each of the segments, and then somehow put them together, or is it possible somehow to spawn a execution of 'date ..' to make the convertion.

Or are there another way to do it ?

I want to use it in my uptime graphs, because it looks so stupid when it says 'Uptime 4274875988 sec'
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests