from

fun from(context: Context, locale: Locale = Locale.getDefault()): DateFormatter

Builds the default date formatter.

Return

The default implementation of DateFormatter.

Parameters

context

The context of the application.

locale

The locale to use for formatting.