Home › Discussions › Questions & Answers › XXEN_UTIL Function for Time Duration Conversion

XXEN_UTIL Function for Time Duration Conversion

Avatar photoCustomer Questions & Answers 5 replies

I need to format a large number of seconds (e.g., 361012 seconds) into a comprehensible time unit (days, hours, minutes). What function in `XXEN_UTIL` is designed for this?

5 replies

  • Support Enginatics

    The function **`XXEN_UTIL.TIME(p_seconds in number)`** converts a number of seconds into a time string.

  • What is the typical format of the result?

  • Support Enginatics

    The result is a string showing the number of days, hours, minutes, and seconds, formatted as ’67d 14h 45.3s’ in one of the examples.

  • If I input 361012 seconds, what result should I expect?

  • Support Enginatics

    For 361012 seconds, the function returns ‘4d 4h 16m 52s’.

  • You must be logged in to reply to this post.