Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all ,
I have to calculate the time differnce between two dates . Likes:
Column1 Column2
09-09-2014 13:28:46 41891.576825799
Calculate time formate like hh:mm:ss
Both columns are date column .Column2 is in Num format of date.
Please suggest.
Thanks,
Narender
may be like this?
Use TimeStamp() at script, like?
TimeStamp#(Coulmn2, 'DD-MM-YYYY hh:mm:ss') as Column2DateTime
Now to find out the difference between two date column, try like this?
Interval(Column1 - Column2DateTime, 'hh:mm:ss') as Diff
H,
Use interval()
For Example:
Interval(time2-time1,hh:mm)
For details see it in help menu.
Regards
Hi,
Try Interval()
Regards,
Jagan.
Hi,
Try this..
=Interval(41891.576825799-TimeStamp#('09-09-2014 13:28:46','DD-MM-YYYY hh:mm:ss'),'hh:mm:ss')
may be like this?
Use TimeStamp() at script, like?
TimeStamp#(Coulmn2, 'DD-MM-YYYY hh:mm:ss') as Column2DateTime
Now to find out the difference between two date column, try like this?
Interval(Column1 - Column2DateTime, 'hh:mm:ss') as Diff
You can also try,
Interval(Column1 - Num(Date#(Column2, 'DD-MM-YYYY hh:mm:ss')),'hh:mm:ss')
interval(column2 - column1,'DD-MM-YYYY hh:mm:ss') as differencetime
Hi All,
Thanks you all.
I got the difference.
for total i have selected sum of rows in expression tab .So now it is showing total also.
But i want the Avg of all the time difference rather than toatl of "hh:mm:ss" means "sum of interval differnce/total number of entries".
Correct me if i am wrong.
Narender
Thank you.
Please see my reply to Jagan Mohan ,i have one more question.
Narender
Thank you.
Please see my reply to Jagan Mohan ,i have one more question.
Narender