Unix time converter

Hello, Koders,
Can anyone help me regarding how to convert UNIX Epoch timestamp to current readable date and time?

If there is(are) any extension please let me know…Thanxx in advance.

I was bored so I whipped this up for you:

com.appybuilder.kennicholsandroid.EpochToHuman.aix (5.7 KB)

EpochToHuman.aia (6.3 KB)

date format = "MM/dd/yyyy HH:mm:ss"
Let me know if this is what you wanted.

1 Like

Thank you brother. Bt does it detect timezone automatically?

no it doesn’t

1 Like

I used current epoch from here for testing:
https://www.epochconverter.com/clock

1 Like

How is it possible recorrect time zone?

add or subtract:
1 hour = 3600 seconds

1 Like

maybe I was wrong, Test it and let me know.

I just tested…for me it is always showing +1 day… my DST (offset) time is +19800. it doesn’t detect.

An option for timezone is needed in the extension…or else automatically detection of timezone may be added…can u update this plz?

Sorry brother…now it’s working properly…thank you very much…I was doing already adding +19800…thanks again

1 Like

Use clock component. That has the option

1 Like

Are u sure? I tried to find it…bt never got it…but @Ken really helped me to get what I actually wanted…

Well, if there is an option in clock component can u help me with blocks? Thanxx in advance.

1 Like

You can get the devices current Time Zone with these blocks, my device returns “-0500”

Annotation%202019-06-29%20223404

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.