MCPcopy Create free account
hub / github.com/CasparCG/client / fromTime

Method fromTime

src/Common/Timecode.cpp:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <QtCore/QString>
4
5QString Timecode::fromTime(const QTime& time, bool useDropFrameNotation)
6{
7 QString result = time.toString("hh:mm:ss").append((useDropFrameNotation == true) ? "." : ":");
8
9 int msec = time.msec() / 10;
10 if (msec < 10)
11 result.append("0");
12
13 return result.append(QString("%1").arg(msec));
14}
15
16QString Timecode::fromTime(double time, double fps, bool useDropFrameNotation)
17{

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected