java.lang.Object
org.mbari.vcr4j.time.HMSF
HMSF is a container for hour, minute, second, frame as can be
represented in a Timecode. Only valid HMSF instances can be constructed.
Usage is:
HMSF h1 = new HMSF(1, 2, 3, 4); // hour, minute,second, frame
Optional<HMSF> h2 = HMSF.from("01:02:03:04"); // A timecode string
HMSF h3 = HMSF.from(200, 29.97) // frames, framerate
- Since:
- 2015-09-24T14:32:00
- Author:
- Brian Schlining
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HMSF
public HMSF(int hour, int minute, int second, int frame) Default constructor- Parameters:
hour- 0-99minute- 0-59second- 0-59frame- >= 0
-
-
Method Details
-
from
Build an HMSF from a timecode string ("HH:MM:SS::FF")- Parameters:
timecode- A string like "01:02:03:04"- Returns:
- Optional containing an HMSF if the string is a valid timecode string.
-
from
-
zero
-
toString
-
getFrame
public int getFrame() -
getHour
public int getHour() -
getMinute
public int getMinute() -
getSecond
public int getSecond()
-