public String getFormattedString(int format, int resolution, int precision) { String timeString = null; if (format == AbsoluteSeconds1970) { timeString = com.rbnb.api.Time.since1970(time); } else { if (nf == null) { nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(6); } // timeString = Double.toString(time); timeString = nf.format(time); } return timeString; }
public static Time fromFormattedString(String timeString) throws Exception { return new Time(com.rbnb.api.Time.fromFormattedString(timeString)); }