update the local time

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello sir,

     We are working on wiced module and use SDK 3.1.2 stack. i getting the GMT time and it is update every 10sec and using this i get the country time by adding or subtracting the offset value.

I need the local time of country directly through internet. Is it any way possible ?

waiting for your reply..

0 Likes
1 Solution
VikramR_26
Employee
Employee
25 sign-ins 10 sign-ins 10 comments on KBA

Yes its true, another alternative is to use REST api and get time from websites like TimeAPI or API Access for Developers - TimeZoneDB

View solution in original post

4 Replies
VikramR_26
Employee
Employee
25 sign-ins 10 sign-ins 10 comments on KBA

Did you check the api called sntp_get_time()

0 Likes
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

WICED SDK does not provide APIs converting UTC/GMT time to local time zone.

You need to implement it by yourself.

VikramR_26
Employee
Employee
25 sign-ins 10 sign-ins 10 comments on KBA

Yes its true, another alternative is to use REST api and get time from websites like TimeAPI or API Access for Developers - TimeZoneDB

Anonymous
Not applicable

hello sir,

Thank you very much.

I already get the GMT time using sntp_get_time(). I have an idea for the GMT time conversion to local time.

have you idea for getting the local time automatically(using API) ?

Once again thank you very much.....

0 Likes