Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FTimecode
Description
Parses a string representation of a timecode.
Supported SMPTE drop frame (DF) and non-drop frame (NDF) formats variations:
- NDF: HH:MM:SS:FF
- DF: HH:MM:SS;FF or HH:MM:SS.FF or HH;MM;SS;FF or HH.MM.SS.FF.
The 2 digits per number is not enforced. It is possible to parse high frame numbers (above 60), such as for audio timecodes. Full SMPTE compliance is not ensured by the parser (i.e. greater than 24h, negative time and any number of frames per second).
Sub-frame variation: Supports the sub-frame variation where the frame number is a decimal number: HH:MM:SS:FF.ZZ.
Side effect of supporting sub-frame is that this function can't unambiguously parse partial timecodes.
| Name | ParseTimecode |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Timecode.h |
| Include Path | #include "Misc/Timecode.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/Timecode.cpp |
static TOptional < FTimecode > ParseTimecode
(
const FStringView InTimecodeString
)
Parsed timecode if valid.
Parameters
| Name | Remarks |
|---|---|
| InTimecodeString | A string representation of a timecode |