Alapjeet
(Alapjeet Singh)
January 21, 2020, 6:30pm
1
Hello everyone.
This is my tutorial to get time & date online using web component..
To get online date & time you required 3 component..
Web Component to get date & time
Lable to show date & time in app
Clock to refresh or get data from web in every second ( You can change Clock Interval)
In this block i used to get data from web in every 3 second
In this 2nd block when I got response from web in text format
In lable 1 I just set the limit from where to get response .
In 2nd label I just set the limit till where the response text will end ( if you don’t use such block then whole site will shown ) . The length & start block i use to limit the length of response..
In 3rd label I just replace the unwanted response text & only show the Time & Date…
Website I used to get data is :
Timedate.aia (2.3 KB)
Thank You. Hope you all Like the Tutorial..
6 Likes
Peter
(Moderator)
January 21, 2020, 6:32pm
2
I would just put the aia in the post and don’t expect a response first. Can you explain also why you use all the segment and replace blocks. Maybe show what you are getting from the website. Your image is cut of i see.
2 Likes
Alapjeet
(Alapjeet Singh)
January 21, 2020, 6:46pm
3
Ya i just use website & i post the website link also
Ya i will edit the post.. & also explain about the use of that segment, replace block & all..
Sorry for inconvenience & Thanks for help..
1 Like
Hi!.. How could I get the same data in Spanish?
Alapjeet
(Alapjeet Singh)
June 4, 2020, 2:22am
5
If you will. Provide me any site I can try..
vknow360
(Sunny Gupta)
June 4, 2020, 2:32am
6
Hi @Ariel_Gallo
Why not try an NTP server?
It gives you most accurate and local time.
1 Like
Alapjeet
(Alapjeet Singh)
June 4, 2020, 2:35am
7
That’s one of the Best Solution…
Alapjeet
(Alapjeet Singh)
June 13, 2020, 2:47am
9
You can try this..
This aia also taking time from web but in this I used the world time site…
Just select your country.. Paste that url in web url & alll done…
3 Likes
thanks, you have been a great help!
These are the best API services for getting time (Free)
http://worldtimeapi.org/
http://worldclockapi.com/
These are top results on Google and the best
Search on Google: time api
1 Like
Alapjeet
(Alapjeet Singh)
June 16, 2020, 10:22am
12
Ya i am using world clock site to get time…
Using web..
Thank you @sonumohammad333 for sharing such valuable APIs…
1 Like
Who I show only time and date in lable in form of MM/DD/YYYY hh:mm:ss
Because I want to make a countdown.
Ottoman
(Muhammad Usman)
June 23, 2020, 4:11am
14
1 Like
Ottoman
(Muhammad Usman)
June 23, 2020, 4:13am
15
Hey Use This
http://worldtimeapi.org/api/ip
This will return data in json format then pick unixtime by kodular dictionary block
2 Likes
Alapjeet
(Alapjeet Singh)
June 23, 2020, 9:32am
16
Extension is better as we all know @vknow360 is always there to solve the issue ..
3 Likes
Ottoman
(Muhammad Usman)
June 23, 2020, 9:34am
17
Thank you. when I checked it. these API doesn’t fulfil my needs
2 Likes
There is a very old topic
It gives a different but successful way
good job
Alapjeet
(Alapjeet Singh)
June 23, 2020, 11:32am
19
That using api..
I am using website not api…
You can add the other way and this topic will be more useful
We don’t know if your method or the method I published works forever
1 Like