function ht2sswt,htime2,sswtime;
;covert hsos time format to ssw time format;

N=N_elements(htime2)
sswtime=strarr(N)

for i=0,N-1 do begin
htime=htime2(i)
htime=strsplit(htime,' ',/extract);
date=htime(0);
time=htime(1);

date=strsplit(date,'-',/extract);
time=strcompress(time,/remove_all);
time=strsplit(time,':',/extract);


year=date(0);
month=date(1);
day=date(2);
hour=time(0);
minute=time(1);
second=time(2);

if strlen(month) LT 2 then month='0'+month;
if strlen(day) LT 2 then day='0'+day;
if strlen(hour) LT 2 then hour='0'+hour
if strlen(minute) LT 2 then minute='0'+minute;
if strlen(second) LT 2 then second='0'+second;

sswtime(i)=year+'-'+month+'-'+day+'T'+hour+':'+minute+':'+second;
endfor


return,sswtime


end
