You're welcome.
"The film to have a duration of one hour."
"The lesson to have a duration of one hour."
In my opinion, it doesn't sound correct. If it is correct, it sounds clunky, and it's not the way a native English speaker would form the sentences.
It is better to w