public interface TimeSpec
A wrapper storing time and makes it accessible via
get() and set(Instant).-
Method Summary
Modifier and TypeMethodDescriptionget()Get the time represented by this object.Get theInstantrepresented by this TimeSpec.booleanCheck if the nanoseconds value is set to the magic numberUTIME_NOW.booleanCheck if the nanoseconds value is set to the magic numberUTIME_OMIT.voidSets the time to the given value.
-
Method Details
-
isUtimeOmit
boolean isUtimeOmit()Check if the nanoseconds value is set to the magic numberUTIME_OMIT.- Returns:
trueif this time represents the special valueUTIME_OMIT
-
isUtimeNow
boolean isUtimeNow()Check if the nanoseconds value is set to the magic numberUTIME_NOW.- Returns:
trueif this time represents the special valueUTIME_NOW
-
set
-
get
-
getOptional
-