Clock

I am working on a world clock app i know how to display my current location time but I don’t know how to display various country times on selecting the country/cities name anyone help me please.

You need to use the os.date() function to get the current ‘Coordinated Universal Time’ time, then determine the user’s location and adjust that time accordingly by the correct time-zone shift.

https://docs.coronalabs.com/api/library/os/date.html

This is a Lua thing, so there should plenty of resources online to help with this.

May also involve GPS calculations, but there are probably other ways to determine the persons longitude.

Google for: timezone longitude

Google for: country time os.date Lua

You need to use the os.date() function to get the current ‘Coordinated Universal Time’ time, then determine the user’s location and adjust that time accordingly by the correct time-zone shift.

https://docs.coronalabs.com/api/library/os/date.html

This is a Lua thing, so there should plenty of resources online to help with this.

May also involve GPS calculations, but there are probably other ways to determine the persons longitude.

Google for: timezone longitude

Google for: country time os.date Lua