This commit is contained in:
Kylmakalle
2025-03-09 16:46:52 +02:00
parent df0aef1c24
commit c66c70046d
2 changed files with 3 additions and 1 deletions

View File

@@ -227,6 +227,7 @@ public func stringForDateWithoutDayAndMonth(date: Date, timeZone: TimeZone? = Ti
return formatter.string(from: date)
}
// MARK: Swiftgram
public func stringForShortTimestampWithSeconds(hours: Int32, minutes: Int32, seconds: Int32, dateTimeFormat: PresentationDateTimeFormat) -> String {
switch dateTimeFormat.timeFormat {
case .regular:
@@ -261,3 +262,4 @@ public func stringForShortTimestampWithSeconds(hours: Int32, minutes: Int32, sec
return String(format: "%02d:%02d:%02d", arguments: [Int(hours), Int(minutes), Int(seconds)])
}
}
//