class CrSubtitleShift::SrtTime

Defined in:

cr_subtitle_shift/srt_time.cr

Constant Summary

SRT_LINE_FORMAT = /^(\d{2}:\d{2}:\d{2},\d{3}) --\> (\d{2}:\d{2}:\d{2},\d{3})(.*)/
TIME_FORMAT = "%d/%m/%Y %H:%M:%S,%L"
TIME_TEMPLATE = "01/01/2000 %s"

Constructors

Instance Method Summary

Constructor Detail

def self.new(operation : String, amount : Float64) #

[View source]

Instance Method Detail

def convert_line(line : String) : String #

[View source]
def convert_time(time : String) : String #

[View source]