CDF_ENCODE_TT2000 ----------------- The CDF_ENCODE_TT2000 function encodes a single or an array of CDF_TIME_TT2000 value(s) into the standard date and time character string(s). The default format of the string is a ISO 8601 format as yyyy-mm-ddThh:mm:ss.cccuuunnn where yyyy is the year, mm is the month (1-12), dd is the day of the month (1-31), hh is the hour (0-23), mm is the minute (0-59), ss is the second (0-60 if leap second), and ccc is the millisecond (0-999), uuu is the microsecond (0-999), and nnn is the nanosecond (0-999). Syntax Result = CDF_ENCODE_TT2000(Epoch [, EPOCH={0 | 1 | 2 | 3}]) Return Value Returns the string(s) representation of the given CDF_TIME_TT2000 value(s). Arguments Epoch A scalar or an array (<= 2D) of CDF_TIME_TT2000 value(s). Keywords EPOCH=, where the default epoch_mode is 3. EPOCH=0 : returns a date in dd-mmm-yyyy hh:mm:ss.ccccccccc 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-60 if leap second), and ccccccccc is the millisecond (000-999), microsecond (000-999) and nanosecond (000-999). EPOCH=1 : returns a date in yyyymmdd.tttttttttt where yyyy is the year, mm is the month (1-12), dd is the day of the month (1-31), and tttttttttt is the fraction of the day (e.g. 5000000000 is 12 o'clock noon). EPOCH=2 : returns a date in yyyymmddss where yyyy is the year, mm is the month (1-12), dd is the day of the month (1-31), and ss is the second (0-59). EPOCH=3 : returns a date in yyyy-mm-ddThh:mm:ss.ccccccccc yyyy is the year, mm is the month (1-12), dd is the day of the month (1-31), hh is the hour (0-23), mm is the minute (0-59), ss is the second (0-60 if leap second), and ccccccccc is the millisecond (000-999), microsecond (000-999) and nanosecond (000-999). Examples test_string = '2005-12-04T20:19:18.176321123' test_epoch = CDF_PARSE_TT2000(test_string) PRINT, CDF_ENCODE_TT2000(test_epoch) CDF_TT2000, test_epoch2, 2005, 12, 4, 20, 19, 18, 176, 321, /compute PRINT, CDF_ENCODE_TT2000(test_epoch2, epoch=0) IDL Output 2005-12-04T20:19:18.176321123 04-Dec-2005 20:19:18.176321123 Version History Introduced: CDF 3.4.0 See Also CDF_PARSE_TT2000, CDF_TT2000