We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c06457c commit f913affCopy full SHA for f913aff
presentation/src/main/java/com/whyranoid/presentation/util/BindingAdapters.kt
@@ -48,3 +48,9 @@ fun TextView.finishLongToDate(long: Long) {
48
val formatter = SimpleDateFormat("yyyy.MM.dd / HH 시 mm 분 운동 종료", Locale.KOREA)
49
text = formatter.format(Date(long))
50
}
51
+
52
+@BindingAdapter("LongToTime")
53
+fun TextView.longToTime(long: Long) {
54
+ val formatter = SimpleDateFormat("HH : mm", Locale.KOREA)
55
+ text = formatter.format(Date(long))
56
+}
0 commit comments