Java Code Examples for ucar.nc2.time.CalendarDate#isBefore()
The following examples show how to use
ucar.nc2.time.CalendarDate#isBefore() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GCpass1.java From tds with BSD 3-Clause "New" or "Revised" License | 6 votes |
public CalendarDate reportOneDir(String dir, Accum accum, Counters countersOne, Indent indent, CalendarDate last) { fm.format("%s%60s", indent, dir + " total"); fm.format("%8d ", accum.nfiles); fm.format("%8d ", accum.nrecords); fm.format("%8.3f ", accum.indexSize); fm.format("%8.3f ", accum.fileSize); fm.format("%8d ", countersOne.get("variable").getUnique()); fm.format("%8d ", countersOne.get("referenceDate").getUnique()); fm.format("%8d ", countersOne.get("gds").getUnique()); fm.format("%s ", countersOne.get("referenceDate").showRange()); CalendarDate first = (CalendarDate) countersOne.get("referenceDate").getFirst(); if (last != null && first.isBefore(last)) fm.format(" ***"); fm.format("%n"); return (CalendarDate) countersOne.get("referenceDate").getLast(); }
Example 2
Source File: VariableTable.java From netcdf-java with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * */ public void setValue(Object value) { if (value == null) { setText(""); } else { CalendarDate date = (CalendarDate) value; if (date.isBefore(cutoff)) { setText(oldForm.toString(date)); } else { setText(newForm.toString(date)); } } }
Example 3
Source File: StructureTable.java From netcdf-java with BSD 3-Clause "New" or "Revised" License | 5 votes |
public void setValue(Object value) { if (value == null) setText(""); else { CalendarDate date = (CalendarDate) value; if (date.isBefore(cutoff)) setText(oldForm.toString(date)); else setText(newForm.toString(date)); } }