Skip to content
Snippets Groups Projects
Commit 9ed9b294 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Add iso date formatter

parent cd4d5005
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
F68C2D422616482A00042967 /* IsoDateFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = F68C2D412616482A00042967 /* IsoDateFormatter.swift */; };
F6A251A0260B670000132DEC /* AppleLibs.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F6A25196260B66FF00132DEC /* AppleLibs.framework */; }; F6A251A0260B670000132DEC /* AppleLibs.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F6A25196260B66FF00132DEC /* AppleLibs.framework */; };
F6A251A5260B670000132DEC /* AppleLibsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6A251A4260B670000132DEC /* AppleLibsTests.swift */; }; F6A251A5260B670000132DEC /* AppleLibsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6A251A4260B670000132DEC /* AppleLibsTests.swift */; };
F6A251A7260B670000132DEC /* AppleLibs.h in Headers */ = {isa = PBXBuildFile; fileRef = F6A25199260B66FF00132DEC /* AppleLibs.h */; settings = {ATTRIBUTES = (Public, ); }; }; F6A251A7260B670000132DEC /* AppleLibs.h in Headers */ = {isa = PBXBuildFile; fileRef = F6A25199260B66FF00132DEC /* AppleLibs.h */; settings = {ATTRIBUTES = (Public, ); }; };
...@@ -25,6 +26,7 @@ ...@@ -25,6 +26,7 @@
/* End PBXContainerItemProxy section */ /* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
F68C2D412616482A00042967 /* IsoDateFormatter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IsoDateFormatter.swift; sourceTree = "<group>"; };
F6A25196260B66FF00132DEC /* AppleLibs.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AppleLibs.framework; sourceTree = BUILT_PRODUCTS_DIR; }; F6A25196260B66FF00132DEC /* AppleLibs.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AppleLibs.framework; sourceTree = BUILT_PRODUCTS_DIR; };
F6A25199260B66FF00132DEC /* AppleLibs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppleLibs.h; sourceTree = "<group>"; }; F6A25199260B66FF00132DEC /* AppleLibs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppleLibs.h; sourceTree = "<group>"; };
F6A2519A260B66FF00132DEC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; F6A2519A260B66FF00132DEC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
...@@ -55,6 +57,14 @@ ...@@ -55,6 +57,14 @@
/* End PBXFrameworksBuildPhase section */ /* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */ /* Begin PBXGroup section */
F68C2D402616482000042967 /* Date */ = {
isa = PBXGroup;
children = (
F68C2D412616482A00042967 /* IsoDateFormatter.swift */,
);
path = Date;
sourceTree = "<group>";
};
F6A2518C260B66FF00132DEC = { F6A2518C260B66FF00132DEC = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -77,6 +87,7 @@ ...@@ -77,6 +87,7 @@
F6A25198260B66FF00132DEC /* AppleLibs */ = { F6A25198260B66FF00132DEC /* AppleLibs */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
F68C2D402616482000042967 /* Date */,
F6A251B8260B696200132DEC /* Numbers */, F6A251B8260B696200132DEC /* Numbers */,
F6A251BD260B699100132DEC /* String+Extended.swift */, F6A251BD260B699100132DEC /* String+Extended.swift */,
F6A25199260B66FF00132DEC /* AppleLibs.h */, F6A25199260B66FF00132DEC /* AppleLibs.h */,
...@@ -212,6 +223,7 @@ ...@@ -212,6 +223,7 @@
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
F6A251BA260B697300132DEC /* Double+Rounded.swift in Sources */, F6A251BA260B697300132DEC /* Double+Rounded.swift in Sources */,
F68C2D422616482A00042967 /* IsoDateFormatter.swift in Sources */,
F6A251BE260B699100132DEC /* String+Extended.swift in Sources */, F6A251BE260B699100132DEC /* String+Extended.swift in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
......
//
// IsoDateFormatter.swift
// AppleLibs
//
// Created by Tobias on 01.04.21.
//
import Foundation
public extension DateFormatter
{
static let iso8601Full: DateFormatter = {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ"
formatter.calendar = Calendar(identifier: .iso8601)
formatter.timeZone = TimeZone(secondsFromGMT: 0)
return formatter
}()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment