package ru.durakscore.app

import java.util.Date

/**
 * Tiny app-local timestamp model.
 *
 * It intentionally mirrors only the two operations the UI actually needs
 * from the old cloud Timestamp class: seconds and toDate().
 */
data class Timestamp(
    private val value: Date
) {

    val seconds: Long
        get() =
            value.time / 1000L

    fun toDate(): Date =
        Date(
            value.time
        )
}
