public class NormalPlayTime
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static NormalPlayTime |
NOW
The NormalPlayType 'now'
|
Constructor and Description |
---|
NormalPlayTime(long ms)
Creates a NormalPlayTime object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNptHhmmssRepresentation()
Gets the standard
hh:mm:ss.fraction representation
for this object. |
java.lang.String |
getNptSecondsRepresentation()
Gets the standard
seconds.fraction representation
for this object. |
long |
getTimeOffsetMs()
Returns the offset it milliseconds, -1l for NOW.
|
boolean |
isNow()
Check whether this time is the special 'now' time.
|
static NormalPlayTime |
parse(java.lang.String stringRep)
Parses a NormalPlayTime object and return it.
|
java.lang.String |
toString()
Gets a valid string representation (seconds "." fraction).
|
public static final NormalPlayTime NOW
public NormalPlayTime(long ms)
NOW
.ms
- time offset, in millisecondspublic boolean isNow()
public long getTimeOffsetMs()
public static NormalPlayTime parse(java.lang.String stringRep) throws java.text.ParseException
stringRep
- string representationjava.text.ParseException
- if the string representation could not
be parsedpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getNptSecondsRepresentation()
seconds.fraction
representation
for this object.seconds.fraction
or "now"
public java.lang.String getNptHhmmssRepresentation()
hh:mm:ss.fraction
representation
for this object.hh:mm:ss.fraction
or "now"