static public boolean isDateUnit ( ucar . units . Unit uu ) { boolean ok = uu . isCompatible ( dateReferenceUnit ) ; if ( ! ok ) return false ; try { uu . getConverterTo ( dateReferenceUnit ) ; return true ; } catch ( ConversionException e ) { return false ; } }
Return true if this ucar . units . Unit is a Date .