Utils

object Utils

Functions

Link copied to clipboard
fun convertDateToDay(context: Context, dateString: String): String

Convert the given date to a day.

Link copied to clipboard
fun convertToClockTime(context: Context, time: String): String

Convert the given time to a clock time. If the time is the same as the current hour, return "Now". Otherwise, return the time in HH:mm format.

Link copied to clipboard
fun getConvertedTemp(temp: Double, isFahrenheit: Boolean): String

Get the converted temperature.

Link copied to clipboard
fun getConvertedTempp(temp: Double, isFahrenheit: Boolean): Double

Get the converted temperature.