hi there
i hope all of you as well
could you help me to translate the date format by json
the time value like this “time”: 1601377200 from api source
hi there
i hope all of you as well
could you help me to translate the date format by json
the time value like this “time”: 1601377200 from api source
I think the time you are getting is in milliseconds.
If you need to convert this in other formats like minutes, hours, etc,then clock component can do this
So just explore the clock component available in the sensor category.
Hope it helps
can you name the API Source.
weather darksky
Google says it’s services are closing for Android and WearOS after Apple’s acquisition.
yah … but its working for old users api’s
could you give me the method to translate the format please
Output - 01/19/1970 06:19:37 pm
thank you …
but mills cannot get the string “time”
thank you for reply … but its not working and this number is fixed
i give the time form api my name “time”
and this name give the numbers
A pro-tip:
Use Dictionary blocks to get data from a JSON instead of the component.
how please ?
For now, Kodular doesn’t have the required block to convert JSON to a dictionary which is existing on App Inventor, so you can stay with the JSON component for now, but you can still convert JSON to the dictionary with few methods.
You can learn more about dictionaries here:
Well, if you are just going to show the schedule just for information you can do it this way.
It’s quick and simple, but you can change that date to change it in the app too.
Extension link
https://community.kodular.io/t/datetools-some-tools-to-work-with-date-and-time/41006
OBS:
Using it that way you don’t need an API
It has these 3 models, you can go customizing if you want
So what is the result (→ Do it)?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.