final double value = Double.parseDouble( _value );
if (_styleIndex == null)
return value;
final Style cellStyle = this.stylesheet.getStyle( Integer.parseInt( _styleIndex.getValue() ) );
if (cellStyle != null) {
if (!cellStyle.isDate() && cellStyle.isTime())
return value < 365.0 ? new Duration( value ) : new LocalDate( value );
if (cellStyle.isDate())
//LATER: need to check for global time format & global timezone
return value < 1.0 ? new Duration( value ) : new LocalDate( value );
}
return value;
}