humble-video-noarch/src/main/java/io/humble/video/Media.java
public String getFormattedTimeStamp(String format)
  {
    String retval = null;
    java.util.Formatter formatter = new java.util.Formatter();

    try {
      Rational timeBase = getTimeBase();
      if (timeBase == null)
        timeBase = Rational.make(1,(int)Global.DEFAULT_PTS_PER_SECOND);
      retval = formatter.format(format,
          (long)(getTimeStamp() * timeBase.getDouble() * 1000) +
          TIME_OFFSET).toString();
      timeBase.delete();
    } finally {
      formatter.close();
    }
    return retval;
  }
public String getFormattedTimeStamp(String format)
  {
    String retval = null;
    java.util.Formatter formatter = new java.util.Formatter();

    try {
      Rational timeBase = getTimeBase();
      if (timeBase == null)
        timeBase = Rational.make(1,(int)Global.DEFAULT_PTS_PER_SECOND);
      retval = formatter.format(format,
          (long)(getTimeStamp() * timeBase.getDouble() * 1000) +
          TIME_OFFSET).toString();
      timeBase.delete();
    } finally {
      formatter.close();
    }
    return retval;
  }
public String getFormattedTimeStamp ( String format ) { String retval = null ; java . util . Formatter formatter = new java . util . Formatter ( ) ; try { Rational timeBase = getTimeBase ( ) ; if ( timeBase == null ) timeBase = Rational . make ( 1 , ( int ) Global . DEFAULT_PTS_PER_SECOND ) ; retval = formatter . format ( format , ( long ) ( getTimeStamp ( ) * timeBase . getDouble ( ) * 1000 ) + TIME_OFFSET ) . toString ( ) ; timeBase . delete ( ) ; } finally { formatter . close ( ) ; } return retval ; }
Get a string representation of the time stamp for this {@link
Media}.  The format of the resulting string is specified by
the format parameter.  See {@link java.util.Formatter} for
details on how to specify formats, however a good place to start
is with the following format: <b>%1$tH:%1$tM:%1$tS.%1$tL</b>

@param format the format for the time stamp string

@return the printable string form of the timestamp

@see #getFormattedTimeStamp()
@see #DEFAULT_TIME_STAMP_FORMAT
@see java.util.Formatter
Get a string representation of the time stamp for this { @link Media } . The format of the resulting string is specified by the format parameter . See { @link java . util . Formatter } for details on how to specify formats however a good place to start is with the following format : <b > %1$tH : %1$tM : %1$tS . %1$tL< / b >