;---------;---------;---------;---------;---------;---------;---------;--------: ;Function to convert Unix time to YYYY/MM/DD, HH:MM:SS format. ;Returns a string. FUNCTION unixTimetoString, unixTime ts = SYSTIME(0,unixTime,/UTC) ;get string of date:Sun Jan 09 10:03:52 2005 months = 'JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC' month = STRMID(ts,4,3) ;get 3-letter month pstn = STRPOS(months,month)/3 + 1 ;pstn gets the number of the month month = STRING(pstn,FORMAT='(I2.2)');convert month to two digits timeString = STRMID(ts,20,4) + '/' + month + '/' + STRMID(ts,8,2) + $ ' ' + STRMID(ts,11,8) + ' UTC' return, timeString END ;---------;---------;---------;---------;---------;---------;---------;--------: