Yes the timestamp is in the requested API (https://mempool.space/api/blocks) which I should be doing, this thing actually works.
To clear why im doing this.
Look here for my build:
i want the XX Minutes ago implemented, like here
i tried some as you tell but i get always 20
any kind of idea what i can do?
Do you want this?
Change mediantime to timestamp if that is the time you want.
this wont work on my build.
i want listed the blocks with XX Minutes ago
i have only this api with this timestamps for this event.
Why wouldn't it work?
What does that mean. Isn't that what i showed you?
So, for me work this now. But i have the normal time like 22:02:17
but i need the minutes ago from the current time ^^
Idk i get this error:
Read this (especially point 2 and 3):
Actually, i need the unix format epoch timestamp in seconds, how can i get it in App Inventor? Thanks.
You should check
https://www.google.com/search?q=convert+unix+timestamp+to+minutes&rlz=1C1CHBF_enUS887US887&oq=convert+unix+timestamp+to+minutes&aqs=chrome..69i57.9078j0j7&sourceid=chrome&ie=UTF-8 . Convert to minutes and then divide minutes by 60.
A Unix Epoch is already in seconds; Epoch, also known as Unix timestamps, is the number of seconds (not milliseconds!) that have elapsed since January 1, 1970 at 00:00:00 GMT (1970-01-01 00:00:00 GMT).
but how do you get it, no such function there?
Have you tried dividing the (clock.now as milliseconds) by 1000 ? (to get seconds)
is it that simple ? tried, clock.now cannot be divided by 1000. tried format it using pattern"S", not sure that's the right way.
convert instant to millis then divide by 1000
I got it, using
Unix Timestamp can go directly in to "second" then add the offset 1970/1/1 and your Time Zone ( +10 for me)