Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FTimecode
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FTimecode FromTimespan
(
const FTimespan& InTimespan, |
Create a FTimecode from a timespan at the given frame rate. | Misc/Timecode.h | |
static FTimecode FromTimespan
(
const FTimespan& InTimespan, |
Create a FTimecode from a timespan at the given frame rate. | Misc/Timecode.h |
FromTimespan(const FTimespan &, const FFrameRate &, bool)
Description
Create a FTimecode from a timespan at the given frame rate.
| Name | FromTimespan |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Timecode.h |
| Include Path | #include "Misc/Timecode.h" |
static FTimecode FromTimespan
(
const FTimespan & InTimespan,
const FFrameRate & InFrameRate,
bool InbRollover
)
Parameters
| Name | Remarks |
|---|---|
| InTimespan | The timespan to convert into a timecode. |
| InFrameRate | The framerate that this timecode is based in. This should be the playback framerate as it is used to determine when the Frame value wraps over. |
| InbRollover | If true, the hours will be the modulo of 24. |
FromTimespan(const FTimespan &, const FFrameRate &, bool, bool)
Description
Create a FTimecode from a timespan at the given frame rate. Optionally supports creating a drop frame timecode, which drops certain timecode display numbers to help account for NTSC frame rates which are fractional.
| Name | FromTimespan |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Timecode.h |
| Include Path | #include "Misc/Timecode.h" |
static FTimecode FromTimespan
(
const FTimespan & InTimespan,
const FFrameRate & InFrameRate,
bool InbDropFrame,
bool InbRollover
)
Parameters
| Name | Remarks |
|---|---|
| InTimespan | The timespan to convert into a timecode. |
| InFrameRate | The framerate that this timecode is based in. This should be the playback framerate as it is used to determine when the Frame value wraps over. |
| InbDropFrame | If true, the returned timecode will drop the first two frames on every minute (except when Minute % 10 == 0) This is only valid for NTSC framerates (29.97, 59.94) and will assert if you try to create a drop-frame format from a non-valid framerate. All framerates can be represented when in non-drop frame format. |
| InbRollover | If true, the hours will be the modulo of 24. |