//ERDDAP/com.cohort.util/ScriptCalendar2/clearSmallerFields
clearSmallerFields
[JVM]
open fun clearSmallerFields(epochSeconds: Double, field: Int): Double
This clears the fields smaller than 'field' (e.g., HOUR_OF_DAY clears MINUTE, SECOND, and MILLISECOND, but doesn't change HOUR_OF_DAY, MONTH, or YEAR).
Return
the new epochSeconds value (or NaN if trouble).
Parameters
JVM
epochSeconds |
field |