This formula isn't perfect but it'll convert a jenkins duration into a
human readable time[1].
=IF(INT(1/86400000*A3)=0, "",INT(1/86400000*A3) &" day, ") &
IF(INT(MOD(A3,86400000)/3600000)=0,"", INT(MOD(A3,86400000)/3600000) &
" hr, ") & IF(INT(MOD(A3,3600000)/60000)=0,"",
INT(MOD(A3,3600000)/60000) &" min, ") &
IF(INT(MOD(A3,60000)/1000)=0,"", INT(MOD(A3,60000)/1000) &" sec")
This might need some formatting improvements... and maybe some
additional logic for whether to show different fields. But it's
probably a good starting point.
Cheers,
Ben
[1] Adapted from this post I found:
http://www.mrexcel.com/forum/excel-questions/73152-converting-seconds-hours-minutes-seconds.html#post351958
and then adjusted to work from miliseconds instead of seconds and to
allow for conditional display of the fields (eg if there are no
hours... the field isn't shown)
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/jenkinsci-users/309d1ec5-7b5b-47a7-bc9e-c133fae7916d%40googlegroups.com.
>
> For more options, visit
https://groups.google.com/d/optout.