code: public static long timeToInternal(TimeUnit unit, Double time)
  	{
  		return Math.round(time * unit.getValue()
  				/ TimeUnit.nanosecond.getValue());
  	}
docs: Utility method to convert a value in the given unit to the internal time
  
  @param unit
  The unit of the time parameter
  @param time
  The time to convert
  @return The internal time representation of the parameter