glean / mozilla.telemetry.glean.private / DatetimeMetricType / set

set

@JvmOverloads fun set(value: Date = Date()): Unit

Set a datetime value, truncating it to the metric's resolution.

Parameters

value - The Date value to set. If not provided, will record the current time.