public class NormalPlayTime extends 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 |
|---|---|
String |
getNptHhmmssRepresentation()
Gets the standard
hh:mm:ss.fraction representation
for this object. |
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(String stringRep)
Parses a NormalPlayTime object and return it.
|
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(String stringRep) throws ParseException
stringRep - string representationParseException - if the string representation could not
be parsedpublic String toString()
public String getNptSecondsRepresentation()
seconds.fraction representation
for this object.seconds.fraction or "now"public String getNptHhmmssRepresentation()
hh:mm:ss.fraction representation
for this object.hh:mm:ss.fraction or "now"Copyright © 2012. All Rights Reserved.