Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Time Adding 4 hours to File Date

How to Add 4 hours  time to my File Date.

I need to Add 4 hours time for this below one .

File_time:

LOAD

     date(left(filetime(),10), 'YYYY/MM/DD') as File_Time_WMS_INV

FROM

[$(Publisher_Data)Bedford\WMS\Bedford_inventory_EXTRACT.csv]

(txt, codepage is 1252, no labels, delimiter is ',', msq);

Last reload ='Last reload : ' & Date(ReloadTime(), 'DD/MM/YYYY      hh:mm:ss') & '   (CET)'

4 Replies
tresesco
MVP
MVP

May be like:

='Last reload : ' & Date(ReloadTime()+Time#(4,'h'), 'DD/MM/YYYY      hh:mm:ss') & '   (CET)'

rbecher
MVP
MVP

Hi,

just add 4/24. One day=1.

LOAD

     date(left(filetime() + 4/24,10), 'YYYY/MM/DD') as File_Time_WMS_INV

Btw. I wouldn't add 1/6 (same value) for better reading..

- Ralf

Astrato.io Head of R&D
jagannalla
Partner - Specialist III
Partner - Specialist III

Hi,

Just add

Date(FileTime()+(4/24),'M/D/YYYY h:mm:ss[.fff] TT') as FileTime_FourHrs

If you don't want date just remove date format from listed format.

Thanks,

Jagan

Not applicable
Author

Thanks Tresesco ,for reload its working fine ,but filetime() its not working ,its little bit urgent ?