Setup adding/removing multiple timers

This commit is contained in:
Paul Akhamiogu
2021-08-31 21:18:45 +01:00
parent 49f0da8123
commit 921ca92885
14 changed files with 554 additions and 206 deletions

View File

@ -1,7 +1,9 @@
package com.simplemobiletools.clock.helpers
import com.simplemobiletools.clock.models.MyTimeZone
import java.util.*
import java.util.Calendar
import java.util.Date
import java.util.TimeZone
import kotlin.math.pow
// shared preferences
@ -56,6 +58,8 @@ const val SORT_BY_ALARM_TIME = 1
const val TODAY_BIT = -1
const val TOMORROW_BIT = -2
const val DEFAULT_TIME = 300
fun getDefaultTimeZoneTitle(id: Int) = getAllTimeZones().firstOrNull { it.id == id }?.title ?: ""
fun getMSTillNextMinute(): Long {