protected static String getTimePrecisionString ( byte precision ) { switch ( precision ) { case TimeValue . PREC_SECOND : return "sec" ; case TimeValue . PREC_MINUTE : return "min" ; case TimeValue . PREC_HOUR : return "hour" ; case TimeValue . PREC_DAY : return "day" ; case TimeValue . PREC_MONTH : return "month" ; case TimeValue . PREC_YEAR : return "year" ; case TimeValue . PREC_DECADE : return "decade" ; case TimeValue . PREC_100Y : return "100 years" ; case TimeValue . PREC_1KY : return "1000 years" ; case TimeValue . PREC_10KY : return "10K years" ; case TimeValue . PREC_100KY : return "100K years" ; case TimeValue . PREC_1MY : return "1 million years" ; case TimeValue . PREC_10MY : return "10 million years" ; case TimeValue . PREC_100MY : return "100 million years" ; case TimeValue . PREC_1GY : return "1000 million years" ; default : return "Unsupported precision " + precision ; } }
Returns a human - readable string representation of a reference to a precision that is used for a time value .