mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Nitpicks
This commit is contained in:
@@ -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)])
|
||||
}
|
||||
}
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user