Module time

Module time 

Source
Expand description

Time formatting and parsing helpers. Pan time parsing and formatting helpers.

Functions§

feetandframes
Formats a frame count as feet+frames.
kcadd
Adds offset frames to a keycode string.
kcdiff
Returns the inclusive frame count between two keycodes.
kcframes
Parses a feet+frames keycode into total frames.
kcoutfromlength
Returns the last keycode given a start and inclusive length.
now
Returns the current local time as seconds since midnight.
outcode
Returns the next-frame timecode for textcode.
seconds
Parses a time string into seconds.
tc24to30
Converts a 24fps timecode to 30fps using scaling.
tc30to24
Converts a 30fps timecode to 24fps using scaling.
tcadd
Adds offset frames to a timecode.
tcdiff
Returns the frame distance between two timecodes.
tcframes
Converts HH:MM:SS:FF timecode to total frames.
texttimedifference
Parses two times and formats the signed difference as H:MM[:SS].
texttimeinterval
Parses two times and formats the forward interval as H:MM[:SS].
tickcount
Returns a monotonic tick count in 60 Hz ticks.
time
Parses a flexible time string into seconds since midnight.
time24
Wraps a time into the 24-hour range.
timecode
Formats a frame count as HH:MM:SS:FF.
timedifference
Returns the signed shortest difference from start to end.
timeinterval
Returns the forward interval from start to end (wraps at 24h).
timepattern
Formats a time using a Pan time pattern.
timestr
Formats number as hh:mm AM/PM.

Type Aliases§

PanTime
A time represented as seconds.