Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
somenathroy
Creator III
Creator III

Convert SAP Timestamp into UTC

Hi All,

I am extracting data from a SAP table, RSICCONT. I need to covert values of TIMESTAMP field of this table into UTC.

Any idea would be highly appreciated.

Thanks,

Somnath

8 Replies
Anonymous
Not applicable

somenathroy
Creator III
Creator III
Author

Sorry missed to mention. Indian Standard Time can be considered.

Anonymous
Not applicable

Check the thread which I already shared with you

tresesco
MVP
MVP

Indian standard Time is 5.5 hrs ahead of UTC, so you can simply subtract that (1/24*5.5), like

(your timestamp - 1/24*5.5)

somenathroy
Creator III
Creator III
Author

For your reference TIMESTAMP field contains values like :

20160112071928

20160112071735

20160112071721

20160112071305

20160112071054

20160112070908

20160112070826

20160112070710

PrashantSangle

Hi,

try below code

=timestamp(num(timestamp#(20160112071928,'YYYYMMDDhhmmss'))-1/24*5.5)

Syntax:

=timestamp(num(timestamp#(YourDateField,'YYYYMMDDhhmmss'))-1/24*5.5)

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 🙂
Anonymous
Not applicable

last 6 digit are time stamp??

use mid() like:

mid(20160112071928,9,6) which would return 071928 & use Time Functions

suniljain
Master
Master

E.g :

Date(Date(20160112070710,'YYYYMMDDhhmmss'),'DD/MM/YYYY')