メインコンテンツへスキップ

//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

sourceTimea formatted time string
dateTimeFormatSee https://erddap.github.io/setupDatasetsXml.html#string-time-units
timeZoneStringFor 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

sourceTimea formatted time string
dateTimeFormatSee https://erddap.github.io/setupDatasetsXml.html#string-time-units