Skip to content

Commit

Permalink
added date formatter extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
NSCabezon committed Mar 5, 2020
1 parent 8346382 commit eee3d7f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PackageDescription
let package = Package(
name: "HelpersSPM",
platforms: [
.macOS(.v10_12),
.macOS(.v10_15),
.iOS(.v11),
.tvOS(.v10),
.watchOS(.v5)
Expand Down
18 changes: 18 additions & 0 deletions Sources/HelpersSPM/Extensions/DateFormatterExtensions.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// File.swift
//
//
// Created by Ivan Cabezon on 05/03/2020.
//

import Foundation

public extension DateFormatter {
var medium: DateFormatter {
let dateFormatter = DateFormatter()
dateFormatter.dateStyle = .medium
dateFormatter.timeStyle = .medium
return dateFormatter
}
}

0 comments on commit eee3d7f

Please sign in to comment.