//ERDDAP/com.cohort.util/ScriptCalendar2/parseToEpochSeconds
parseToEpochSeconds
[JVM]
open fun parseToEpochSeconds(sourceTime: String, dateTimeFormat: String, timeZoneString: String): Double
This converts a sourceTime string into a double with epochSeconds.
Return
the epochSeconds value or NaN if trouble
Parameters
JVM
sourceTime | a formatted time string |
dateTimeFormat | See https://erddap.github.io/setupDatasetsXml.html#string-time-units |
timeZoneString | For a list of valid timezone ID's, see the "TZ database names" column in the table at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones . If this is null or "", Zulu will be used. |
[JVM]
open fun parseToEpochSeconds(sourceTime: String, dateTimeFormat: String): Double
A variant of parseToEpochSeconds that uses the Zulu time zone.
Return
the epochSeconds value or NaN if trouble
Parameters
JVM
sourceTime | a formatted time string |
dateTimeFormat | See https://erddap.github.io/setupDatasetsXml.html#string-time-units |