Skip to main content

//ERDDAP/com.cohort.util/ScriptCalendar2/unitsSinceToEpochSeconds

unitsSinceToEpochSeconds

[JVM]
open fun unitsSinceToEpochSeconds(baseSeconds: Double, factorToGetSeconds: Double, unitsSince: Double): Double

This converts a unitsSince value into epochSeconds. This properly handles 'special' factorToGetSeconds values (for month and year).

Return

seconds since 1970-01-01 (or NaN if unitsSince is NaN)

Parameters

JVM

baseSecondsfrom getTimeBaseAndFactor[0]
factorToGetSecondsfrom getTimeBaseAndFactor[1]
unitsSincea numeric time value in the source units