Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / library / format / build.gradle.kts

build.gradle.kts12 lines · 604 BRaw
1plugins {
2 id("common-conventions-library")
3}
4
5// Pure display formatting of relative ages ("5m ago"): bucketing a timestamp
6// into just-now / minutes / hours / days / older. No Android, Compose, or
7// resource access in the API surface used by unit tests, so consumers keep
8// their own wording (labels, date fallback) and this module stays opt-in:
9// only apps that format a relative age depend on it, unlike :library (the
10// grandfathered base every app inherits) or :library:ui's DateString, which
11// deliberately covers calendar dates/clock times only and excludes elapsed
12// and relative time.