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. CDF_EPOCH variables may be unparsed into a variety of formats using the CDF_ENCODE_EPOCH function.
A formatted string that will be parsed into a double precision value suitable to be used as a CDF_EPOCH value. The format expected by CDF_PARSE_EPOCH (the CDF standard) is
dd-mmm-yyyy hh:mm:ss.ccc
where:
dd
is the day of the month, 1-31.
mmm
is the month, Jan, Feb, Mar, Apr,May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec.
yyyy
is the year, A.D.
hh
is the hour, 0-23.
mm
is the minute, 0-59.
ss
is the second, 0-59, and
ccc
is the millisecond, 0-999.For more information about CDF_EPOCH values, see section 2.2.10 ("Data Types") of the version 2.6 CDF User's Guide .
test_string = '04-Dec-1995 20:19:18.176'
test_epoch = CDF_PARSE_EPOCH(test_string)
TEST_STRING STRING = '04-Dec-1995 20:19:18.176'
TEST_EPOCH DOUBLE = 6.2985328e+13