Convert seconds to compound duration: Difference between revisions
Content added Content deleted
No edit summary |
(→{{header|beeswax}}: beeswax example added) |
||
Line 238: | Line 238: | ||
</pre> |
</pre> |
||
=={{header|beeswax}}== |
|||
<lang beeswax>#>%f# #>%f# #f%<##>%f# |
|||
pq":X~7~ :X@~++8~8@:X:X@~-~4~.+~8@T_ |
|||
## ## #### #`K0[`}`D2[`}BF3< < |
|||
>{` wk, `>g?"p{` d, `>g?"p{` hr, `>g?"p{` min, `>g"b{` sec, `b |
|||
> d > d > d > d</lang> |
|||
{{Out}} |
|||
<pre> |
|||
julia> beeswax("seconds to compound duration.bswx") |
|||
i7259 |
|||
2 hr, 59 sec |
|||
Program finished! |
|||
julia> beeswax("seconds to compound duration.bswx") |
|||
i86400 |
|||
1 d |
|||
Program finished! |
|||
julia> beeswax("seconds to compound duration.bswx") |
|||
i6000000 |
|||
9 wk, 6 d, 10 hr, 40 min |
|||
Program finished! |
|||
</pre> |
|||
=={{header|Befunge}}== |
=={{header|Befunge}}== |