Getting Data In

Convert BST to America/NY (Timezone)

Vidi
Engager

I tried this but seems this is not working.

I want to convert BST to America /NY time please.

| eval BST=strftime(TransactTime/1000000000, "%d/%m/%y %H:%M:%S %Z" )
| eval TimeZone=BST+" -EST"
| eval ET=strftime(strptime(TimeZone,"%d/%m/%y %H:%M:%S %Z"),"%d/%m/%y %H:%M:%S %Z")
| table BST, ET

Labels (2)
0 Karma

to4kawa
Ultra Champion
| makeresults
| eval h_time=strftime(_time,"%FT%T")
| eval est_time=strptime(h_time."-0500","%FT%T%z")
| convert ctime(est_time)

Vidi
Engager

I tried this it didn't work.

First of all it complained about the format of strftime so I changed it to

| eval BST=strftime(TransactTime/1000000000, "%d/%m/%y %H:%M:%S %Z" )
| eval NY=strptime(BST."-0500","%d/%m/%y %H:%M:%S %Z")
| convert ctime(BST)

| table host, BST, NY, TransactTime

Tags (1)
0 Karma

to4kawa
Ultra Champion
0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...