]> git.r.bdr.sh - rbdr/captura/blame_incremental - Captura/Data/CapturaRemoteFile+name.swift
Add AppleScript support
[rbdr/captura] / Captura / Data / CapturaRemoteFile+name.swift
... / ...
CommitLineData
1import Foundation
2extension CapturaRemoteFile {
3 var name: String {
4 let dateFormatter = DateFormatter()
5 dateFormatter.dateStyle = .medium
6 dateFormatter.timeStyle = .medium
7 dateFormatter.locale = Locale.current
8 if let timestamp {
9 return dateFormatter.string(from: timestamp).replacingOccurrences(of: ":", with: ".")
10 }
11 return "Unknown"
12 }
13}