WhatsTheTime is a cross-platform application that helps users keep track of time across different cities around the world. The app provides a user-friendly interface to view the current time in various time zones and offers additional features such as analog and digital clock displays.
clock.-.Made.with.Clipchamp.mp4
- Home Screen: Displays a list of cities with their respective current times. Users can add or remove cities from this list.
- City Search Bar: Allows users to search for cities and add them to their list.
- Analog Watch: Provides an analog clock display for the selected city.
- Digital Clock: Displays the current time in a digital format for the selected city.
- Settings: Allows users to configure app settings such as time format (12-hour or 24-hour) and theme (light or dark mode).
This app follows the Model-View-ViewModel (MVVM) architecture to ensure a clear separation of concerns and maintainability.
The app uses the World Time API to fetch the current time for different cities: World Time API
| Use | Library |
|---|---|
| Navigation | Jetpack Compose Navigation |
| Data Store | AndroidX DataStore |
| HTTP Client/Serialization | Retrofit |
| ViewModel | AndroidX ViewModel |
Warning You need a Mac with macOS to write and run iOS-specific code on simulated or real devices. This is an Apple requirement.
To work with this project, you need the following:
- A machine running a recent version of macOS
- Xcode
- Android Studio
- The Kotlin Multiplatform Mobile plugin
- The CocoaPods dependency manager
- Ensure you have an Android virtual device available. Otherwise, create one.
- In Android Studio, select
androidAppfrom the list of run configurations. - Choose your virtual device and click Run.
To install the Android application on a real Android device or emulator, run the following command in the terminal:
./gradlew installDebug- In Android Studio, select Edit Configurations from the run configurations menu.
- Navigate to iOS Application > iosApp.
- In the Execution target list, select your target device and click OK.
- Select the
iosApprun configuration and click Run next to your virtual device.
To run the app on a real iOS device, you need the following:
- The
TEAM_IDassociated with your Apple ID - The iOS device registered in Xcode
Follow the steps in the official guide to set up your device.
This project is licensed under the MIT License. See the LICENSE file for more details.


