www.geeksforgeeks.org/java-time-duration-class-in-java/
1 Users
0 Comments
16 Highlights
0 Notes
Tags
Top Highlights
equals(Object otherDuration)
class implements Serializable, Comparable<Duration>, TemporalAmount interfaces.
value-based Class present in the Java time library
immutable and thread-safe.
abs()
compareTo(Duration otherDuration)
getNano()
getSeconds()
getUnits()
ofDays(long days)
ofHours(long hours)
ofMinutes(long minutes)
ofSeconds(long seconds)
toDays()
toHours()
toMinutes()
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.