Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- appbar
- LifeCycle
- 앱바
- Compose
- tabbar
- textview
- livedata
- ScrollView
- Navigation
- data
- scroll
- android
- Button
- binding
- viewmodel
- CustomScrollView
- DART
- Coroutines
- 앱
- activity
- 계측
- Dialog
- textfield
- Flutter
- drift
- TEST
- 테스트
- Kotlin
- 안드로이드
- intent
Archives
- Today
- Total
목록현재 시각 (1)
Study Record
[안드로이드] 현재 시간 가져오기
코틀린으로 현재 시간을 가져오는 2가지 방법이다. 1. Calendar 클래스 이용하기 private fun getNowTime(): String{ val calendar = Calendar.getInstance() val year = calendar.get(Calendar.YEAR) val month = calendar.get(Calendar.MONTH) + 1 val day = calendar.get(Calendar.DAY_OF_MONTH) val hour = calendar.get(Calendar.HOUR_OF_DAY) val minute = calendar.get(Calendar.MINUTE) val second = calendar.get(Calendar.SECOND) val dayOfWeek =..
안드로이드
2022. 5. 26. 17:27