forked from rho_n/hpr_generator
Add MACRO display_episode_duration
Format duration as hh:mm:ss
This commit is contained in:
parent
082ea4069d
commit
414bae101a
@ -8,6 +8,20 @@
|
||||
<!--% ELSE %--><!--% display_when_false %--><!--% END %-->
|
||||
<!--% END %-->
|
||||
|
||||
<!--% MACRO display_episode_duration(duration_sec) BLOCK %-->
|
||||
<!--% seconds = duration_sec % 60 %-->
|
||||
<!--% USE format %-->
|
||||
<!--% minutes_only = format("%d") %-->
|
||||
<!--% minutes = minutes_only(duration_sec / 60) %-->
|
||||
<!--% hours_only = format("%d") %-->
|
||||
<!--% hours = hours_only(minutes / 60) %-->
|
||||
<!--% IF hours >= 1 %-->
|
||||
<!--% minutes = minutes - hours * 60 %-->
|
||||
<!--% END %-->
|
||||
<!--% display_hours = format("%02d:%02d:%02d") %-->
|
||||
<!--% display_hours(hours,minutes,seconds) %-->
|
||||
<!--% END %-->
|
||||
|
||||
<!--% MACRO display_explicit(is_explicit) BLOCK %-->
|
||||
<!--% display_choice(is_explicit, 'Explicit', 'Clean') %-->
|
||||
<!--% END %-->
|
||||
|
Loading…
Reference in New Issue
Block a user