mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Add doc and examples.
This commit is contained in:
committed by
Benoit Marty
parent
5e0e64f9c9
commit
d4b0e37a83
+32
-2
@@ -16,11 +16,41 @@ interface DateFormatter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enum class DateFormatterMode {
|
enum class DateFormatterMode {
|
||||||
|
/**
|
||||||
|
* Full date and time.
|
||||||
|
* Example:
|
||||||
|
* "April 6, 1980 at 6:35 PM"
|
||||||
|
* Format can be shorter when useRelative is true.
|
||||||
|
* Example:
|
||||||
|
* "6:35 PM"
|
||||||
|
*/
|
||||||
Full,
|
Full,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Only month and year.
|
||||||
|
* Example:
|
||||||
|
* "April 1980"
|
||||||
|
* "This month" can be returned when useRelative is true.
|
||||||
|
* Example:
|
||||||
|
* "This month"
|
||||||
|
*/
|
||||||
Month,
|
Month,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Only day.
|
||||||
|
* Example:
|
||||||
|
* "Sunday 6 April"
|
||||||
|
* "Today", "Yesterday" and day of week can be returned when useRelative is true.
|
||||||
|
*/
|
||||||
Day,
|
Day,
|
||||||
// Time if same day, else date
|
|
||||||
|
/**
|
||||||
|
* Time if same day, else date.
|
||||||
|
*/
|
||||||
TimeOrDate,
|
TimeOrDate,
|
||||||
// Only time whatever the day
|
|
||||||
|
/**
|
||||||
|
* Only time whatever the day.
|
||||||
|
*/
|
||||||
TimeOnly,
|
TimeOnly,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user