Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi
i have timestamp its not in proper format i tried different ways to convert them its not working ,there are several columns like this
Can anybody help for this issue please check the attached sample data
Hello Pardha,
Use below script to get actual time format.
LOAD *,
if(len(SubField(time_stamp,':',1))=0,time('00'&time_stamp,'hh:mm:ss'),If(len(SubField(time_stamp,':',1))>0,Time(time_stamp,'hh:mm:ss'))) as new_time_stamp
;
LOAD A as name,
B as time_stamp
FROM
(ooxml, no labels, table is Sheet1);
RESULT:
Hi,
what is the expected output ?
i need in seconds
Hi,
Please be clear on the requirement. show your input and expected ouput.
I'm unable to open your excel. DO you want timestamp along with seconds or convert time into seconds?
this may help you.
hi vivek
Actually data format was not good
example: 2:18(mm:SS) but in excel it was converted to 2:18:00 AM(hh:mm:ss) i tried above links they are not working there are several columns i can't convert each and every column my user was leave to change the data formatting i need complete some POC on these data
Hello Pardha,
Use below script to get actual time format.
LOAD *,
if(len(SubField(time_stamp,':',1))=0,time('00'&time_stamp,'hh:mm:ss'),If(len(SubField(time_stamp,':',1))>0,Time(time_stamp,'hh:mm:ss'))) as new_time_stamp
;
LOAD A as name,
B as time_stamp
FROM
(ooxml, no labels, table is Sheet1);
RESULT:
thanks mate