CDF_ENCODE_EPOCH16
The CDF_ENCODE_EPOCH16 function encodes a CDF_EPOCH16 value into the standard date and time character string.
Examples
test_string = '04-Dec-2005 20:19:18.176.214.648.000'
test_epoch = CDF_PARSE_EPOCH16(test_string)
PRINT, CDF_ENCODE_EPOCH16(test_epoch)
IDL Output
04-Dec-2005 20:19:18.176.214.648.000
Syntax
Result = CDF_ENCODE_EPOCH16(Epoch16 [, EPOCH={0 | 1 | 2 | 3}] )
Return Value
Returns the string representation of the given CDF_EPOCH16 value.
Arguments
Epoch16
The double-precision CDF_EPOCH16 value to be encoded.
Note: The CDF_EPOCH16 value can be obtained by calling CDF_EPOCH16 with the COMPUTE keyword, or by calling CDF_PARSE_EPOCH16.
Keywords
EPOCH
Set this keyword equal to one of the following integer values, specifying the epoch mode to use for output of the epoch date string:
Value |
Date Format |
0 |
|
1 |
|
2 |
|
3 |
|
where:
Date Element |
Represents |
|
the day of the month (1-31) |
|
the abbreviated month name: ( |
|
the month number (1-12) |
|
the year (A.D.) |
|
the hour (0-23) |
|
the minute (0-59) |
|
the second (0-59) |
|
the millisecond (0-999) |
|
the microsecond (0-999) |
|
the nanosecond (0-999) |
|
the picosecond (0-999) |
|
the fraction of the day (e.g. 500000000000000 is noon). |
Version History
6.3 |
Introduced |