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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get the hours,minutes,seconds,frac?

Hi All,
Can any one let me know how to get the hours, minutes, seconds, frac from the values like
1.17:2:35.000
122.14:31:11.000[hhh.mm:ss:ff.ttt]

1 Solution

Accepted Solutions
Not applicable
Author

Hi All I Got it
TextBetween(Timefield,'','.') as Hour,
TextBetween(Timefield,'.',':') as Minute,
TextBetween(Timefield,':',':') as Second,
TextBetween(Timefield,':','.',2) as Frac,
TextBetween(Timefield,'.','',2) as tt,

Thank you for your Response.

View solution in original post

4 Replies
ecolomer
Master II
Master II

hh=hours(val)

mm=minute(val)

ss=second(val)

Not applicable
Author

hi try this

min(yourvalue)

second(yourvalue)

hours(yourvalue)

second(yourvalue)

frac(yourvalue)

tresesco
MVP
MVP

Like:

Hour(Timestamp#('122.14:31:11.000' , 'hhh.mm:ss:ff.ttt')) -> Hour

Minute(Timestamp#('122.14:31:11.000' , 'hhh.mm:ss:ff.ttt')) -> Minute

Second(Timestamp#('122.14:31:11.000' , 'hhh.mm:ss:ff.ttt')) -> Second

Frac(Timestamp#('122.14:31:11.000' , 'hhh.mm:ss:ff.ttt')) -> Frac

Not applicable
Author

Hi All I Got it
TextBetween(Timefield,'','.') as Hour,
TextBetween(Timefield,'.',':') as Minute,
TextBetween(Timefield,':',':') as Second,
TextBetween(Timefield,':','.',2) as Frac,
TextBetween(Timefield,'.','',2) as tt,

Thank you for your Response.