example.platform.power/src/example/platform/power/DebugCommands.java
private Date createFutureDate(final long futureTimeInMs)
    {
        Calendar cal = Calendar.getInstance();
        cal.setTime(new Date());
        cal.add(Calendar.MILLISECOND, (int)futureTimeInMs);
        return cal.getTime();
    }
/**
     * Creates a {@link Date} object for a time in the future
     * @param futureTimeInMs
     *      the amount of time in milliseconds in the future to create a date for
     * @return
     *      the newly created future Date
     */
Creates a  Date object for a time in the future
@param futureTimeInMs
the amount of time in milliseconds in the future to create a date for
@return
the newly created future Date
Creates a Date object for a time in the future @param futureTimeInMs the amount of time in milliseconds in the future to create a date for @return the newly created future Date
private Date createFutureDate(final long futureTimeInMs)
    {
        Calendar cal = Calendar.getInstance();
        cal.setTime(new Date());
        cal.add(Calendar.MILLISECOND, (int)futureTimeInMs);
        return cal.getTime();
    }
private Date createFutureDate ( final long futureTimeInMs ) { Calendar cal = Calendar . getInstance ( ) ; cal . setTime ( new Date ( ) ) ; cal . add ( Calendar . MILLISECOND , ( int ) futureTimeInMs ) ; return cal . getTime ( ) ; }
Creates a {@link Date} object for a time in the future
 @param futureTimeInMs
      the amount of time in milliseconds in the future to create a date for
 @return
      the newly created future Date
Creates a { @link Date } object for a time in the future @param futureTimeInMs the amount of time in milliseconds in the future to create a date for @return the newly created future Date