Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- paragraph style
- swift 백준
- swift concurrency
- BFS
- traits
- tusit font 추가 방법
- swift custom ui
- SWIFT
- rxdatasources
- coordinator
- uikit toast
- swift dashed line
- claen architecture
- Tuist
- DP
- custombottomsheet
- UIKit
- custom ui
- task cancel
- button configuration
- swift bottomsheet
- identifiable
- custom navigation bar
- RxSwift
- reactorkit
- swift 점선
- task cancellation
- swift navigationcontroller
- 타임라인 포맷팅
- domain data
Archives
- Today
- Total
목록2025/03/10 (1)
김경록의 앱 개발 여정

유튜브나 인스타 등에서 유저의 시간 기록을 위와 같이 포맷팅 하는 방법에 대해 짤막하게 써보겠습니다.코드 import Foundationextension String { func timeAgo() -> String? { // ISO8601DateFormatter를 사용하여 입력된 날짜 문자열을 Date로 변환 let formatter = ISO8601DateFormatter() guard let inputDate = formatter.date(from: self) else { return nil } // UTC 시간대 기준으로 현재 시간을 가져옵니다. let calendar = Calendar.current g..
TIL
2025. 3. 10. 19:12