Skip to content

Instantly share code, notes, and snippets.

@jasdev
Last active Jan 25, 2021
Embed
What would you like to do?
Two- and three-padded hours, minutes, seconds, and milliseconds parsers.
let timecodeHours = Prefix(2).pipe(Int.parser(isSigned: false))
let timecodeMinutes = Prefix(2).pipe(Int.parser(isSigned: false))
let timecodeSeconds = Prefix(2).pipe(Int.parser(isSigned: false))
let timecodeMilliseconds = Prefix(3).pipe(Int.parser(isSigned: false))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment