|
Scientific Data Formats: Common Data Format |
|
The CDF_PARSE_EPOCH function parses a properly-formatted input string into a double-precision value properly formatted for use as a CDF_EPOCH variable.
| Note CDF_EPOCH variables may be unparsed into a variety of formats using the CDF_ENCODE_EPOCH function. |
Result = CDF_PARSE_EPOCH(Epoch_string)
Returns the double-precision value of the input string properly formatted for use as a CDF_EPOCH variable.
A formatted string that will be parsed into a double precision value suitable to be used as a CDF_EPOCH value. The format of the date string is:
DD-Mon-YYYY hh:mm:ss.ccc
where:
For more information about CDF_EPOCH values, see "Data Types" in the CDF User's Guide.
None
test_string = '04-Dec-1995 20:19:18.176' test_epoch = CDF_PARSE_EPOCH(test_string) HELP, test_string, test_epoch PRINT, CDF_ENCODE_EPOCH(test_epoch, EPOCH=0)