TimeCode.from_date_time


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "1.12" ) ]
public TimeCode.from_date_time (uint fps_n, uint fps_d, DateTime dt, TimeCodeFlags flags, uint field_count)

The resulting config->latest_daily_jam is set to midnight, and timecode is set to the given time.

This might return a completely invalid timecode, use TimeCode.from_date_time_full to ensure that you would get null instead in that case.

Parameters:

fps_n

Numerator of the frame rate

fps_d

Denominator of the frame rate

dt

DateTime to convert

flags

TimeCodeFlags

field_count

Interlaced video field count

Returns:

the TimeCode representation of dt.