valueOf

Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)

convert

Converts the given duration to a temporal amount measured in
this unit.

Conversions from more precise to less precise units are usually
associated with a loss of information. For example the conversion
of 999 milliseconds results to 0 seconds. In reverse,
the conversion of less precise to more precise units can result in
a numerical overflow.

Example: In order to convert 44 minutes to milliseconds, the
expression ClockUnit.MILLIS.convert(44L, ClockUnit.MINUTES)
is applied. Note: If hours or minutes are to be converted then
UTC-leapseconds will be ignored that is a minute has here always
60 seconds.