Skip to content

Commit 569524b

Browse files
committed
[Chore] #202 - DateFormatters 통합
1 parent 07195f3 commit 569524b

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

Neki-iOS/Features/Archive/Sources/Presentation/Sources/Extension/Date+.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,3 @@ extension Date {
1313
return DateFormatters.dotFormat.string(from: self)
1414
}
1515
}
16-
17-
private struct DateFormatters {
18-
static let dotFormat: DateFormatter = {
19-
let formatter = DateFormatter()
20-
formatter.dateFormat = "yyyy.MM.dd"
21-
formatter.locale = Locale(identifier: "ko_KR")
22-
return formatter
23-
}()
24-
}

Neki-iOS/Features/Archive/Sources/Presentation/Sources/Extension/String+.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extension String {
3535
}
3636
}
3737

38-
private struct DateFormatters {
38+
struct DateFormatters {
3939

4040
// 1. 밀리초 + 타임존 (Standard InternetDateTime + Fractional)
4141
static let iso8601Fractional: ISO8601DateFormatter = {
@@ -71,4 +71,11 @@ private struct DateFormatters {
7171
]
7272
return formatter
7373
}()
74+
75+
static let dotFormat: DateFormatter = {
76+
let formatter = DateFormatter()
77+
formatter.dateFormat = "yyyy.MM.dd"
78+
formatter.locale = Locale(identifier: "ko_KR")
79+
return formatter
80+
}()
7481
}

0 commit comments

Comments
 (0)