public long getAsMinutes () { // IFJDK5 return getAsSeconds () / 60; // ELSE // return m_eTimeUnit.toMinutes (m_nDuration); // ENDIF }
/** * Sleep the current thread for a certain amount of time * * @param aTimeValue * The time value to use. May not be <code>null</code>. * @return {@link ESuccess#SUCCESS} if sleeping was not interrupted, * {@link ESuccess#FAILURE} if sleeping was interrupted */ @Nonnull public static ESuccess sleep (@Nonnull final TimeValue aTimeValue) { ValueEnforcer.notNull (aTimeValue, "TimeValue"); return sleep (aTimeValue.getAsMillis ()); }
public long getAsHours () { // IFJDK5 return getAsSeconds () / 3600; // ELSE // return m_eTimeUnit.toHours (m_nDuration); // ENDIF }
public long getAsDays () { // IFJDK5 return getAsSeconds () / 86400; // ELSE // return m_eTimeUnit.toDays (m_nDuration); // ENDIF }