BI Publisher (MOSC)

MOSC Banner

Need to add a zero before hour <9

edited Jun 26, 2015 10:01AM in BI Publisher (MOSC) 1 commentAnswered


Hi ,

We are using the below code for converting total duration in seconds to minute:second format:

<?xdofx:floor(NET_QUANTITY DIV 60) || ':'?><?xdofx:mod(NET_QUANTITY,60)?>

Using this we are getting output like 2:50/8:30/10:56.

The requirement is there has to be a leading zero for hours <9 which is missing in the above output.

Please suggest how can this be achieved.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center