Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

"Round" timestamp på hundreds of a second

Hi,

trying to show the time (extracted from a timestamp) with hundreds of a second as per below:

2014-08-01 09:34:38.172512 should be 09:34:38:17

I tried the below but the 'hundreds' are not showing correct.

Text(Time(round(Timestamp, (1/8640000)), 'hh:mm:ss:HH')) as Time

Any clues?

Regards,

Olle

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

instead of 'hh:mm:ss:HH' use 'hh:mm:ss:ff'

View solution in original post

6 Replies
Anonymous
Not applicable
Author

instead of 'hh:mm:ss:HH' use 'hh:mm:ss:ff'

Not applicable
Author

hi

try this

=date(date#('2014-08-01 09:34:38.172512','YYYY-MM-DD hh:mm:ss.ffffff'),'YYYY-MM-DD hh:mm:ss.ff')

or try this

=date(date#('2014-08-01 09:34:38.172512','YYYY-MM-DD hh:mm:ss.ffffff'),'hh:mm:ss.ff')

MarcoWedel

Time(Round(Frac(Timestamp),1/8640000),'hh:mm:ss:ff') as Time


to also extract the time part from the timestamp, also round the numeric value to 1/100 sec and not only change the textual representation

PrashantSangle

Hi,

Use Time(Fieldname,'hh:mm:ss.ff') Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Great, thanks!

ashfaq_haseeb
Champion III
Champion III

Try this

=time(Timestamp#(Timestamp,'yyyy-mm-dd hh:mm:ss.fffff'),'hh:mm:ss.ff') as Time

Regards

ASHFAQ