Commit a652728c authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update attribute.

parent 56239600
......@@ -6,13 +6,12 @@ import org.threeten.bp.Period
import org.threeten.bp.format.DateTimeFormatter
import org.threeten.bp.format.FormatStyle
import org.threeten.bp.format.TextStyle
import org.threeten.bp.temporal.ChronoUnit
import java.util.*
object DateTimeHelper {
private val today = LocalDate.now()
private val yesterday = today.minusDays(1)
private val lastWeek = today.minus(1, ChronoUnit.WEEKS)
private val lastWeek = today.minusWeeks(1)
/**
* Returns a date from a LocalDateTime or the textual representation if the LocalDateTime has a max period of a week from the current date.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment