- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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..
Solved! Go to Solution.
- Labels:
-
SDK 3.x
-
TCPIP
-
Web Services
-
Wi-Fi Direct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes its true, another alternative is to use REST api and get time from websites like TimeAPI or API Access for Developers - TimeZoneDB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you check the api called sntp_get_time()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
WICED SDK does not provide APIs converting UTC/GMT time to local time zone.
You need to implement it by yourself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes its true, another alternative is to use REST api and get time from websites like TimeAPI or API Access for Developers - TimeZoneDB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.....