Descripción
Sintaxis
public Duration newDuration(boolean isPositive, int years, int months, int days, int hours, int minutes, int seconds)
public abstract Duration newDuration(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds)
public abstract Duration newDuration(long durationInMilliSeconds)
public abstract Duration newDuration(String lexicalRepresentation)
Parámetros
- int seconds,
- BigInteger months,
- long durationInMilliSeconds,
- int minutes,
- int days,
- int months,
- BigInteger hours,
- BigInteger years,
- boolean isPositive,
- BigInteger days,
- int years,
- BigDecimal seconds,
- String lexicalRepresentation,
- BigInteger minutes,
- int hours,
Excepciones
IllegalArgumentException, NullPointerException, UnsupportedOperationException
Clase Padre
Ejemplo
Líneas de Código
Vídeos Java
Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.