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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

convert value tu second

Hello,

i would like too convert a nummeric feld to add to a date.


I have two column

Column one  is al value 35 and column is a date with time.  The value 35 must be add too date in second´s.

Can anyone help me, how must i do to get the right date

31.12.2016 12:30:13 + 35 second´s

are 31.12.2016 12:30:48

Thank´s for your help

8 Replies
Vegar
MVP
MVP

Interval( TimeColumn + interval#(secondsColumn, 's') ) as NewTime

sunny_talwar
MVP
MVP

Two options

TimeStamp(Date + Seconds/(60*60*24))

or

TimeStamp(Date + Interval#(Seconds, 'ss'))

sunny_talwar
MVP
MVP

Here is a tested sample

=TimeStamp(Date#('31.12.2016 12:30:13', 'DD.MM.YYYY h:mm:ss') + 35/86400)

Capture.PNG

Not applicable
Author

Good Mornig,

thank´s the formel is the super.  What does 60*60*24 mean?

tresB
Champion III
Champion III

1 day = 24*60*60 seconds

Vegar
MVP
MVP

60 seconds, 60 minutes, 24hours. It's used for converting days to seconds one second equals 1/(60*60*24)

Not applicable
Author

Okay,

Thank you very much

sunny_talwar
MVP
MVP

If you got what you wanted, please close this thread by marking correct and helpful responses.

Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny