function [newTime]=convTime(oldTime)

[Y,M,D,H,MI,S] =datevec(oldTime);
Min2Sec=[MI-MI(1)].*60;
Hr2Sec=[H-H(1)].*60*60;
S=[S-S(1)];
newTime=[S+Min2Sec+Hr2Sec];