BoldTranscriptsEx.Utils (bold_transcripts_ex v0.6.0)

Summary

Functions

Formats a duration from millisecond or seconds to a chapter timestamp like 01:12:34.000 with HH:MM:SS.000 format (hour, minutes, seconds).

Decodes a binary into json if necessary.

Functions

format_chapter_timestamp(milliseconds, atom)

Formats a duration from millisecond or seconds to a chapter timestamp like 01:12:34.000 with HH:MM:SS.000 format (hour, minutes, seconds).

The second parameter indicates whether the given number is in milliseconds or seconds.

maybe_decode(json)

Decodes a binary into json if necessary.

pad(number, leading_zero_count \\ 2)