diff --git a/DateHelper.xcodeproj/project.pbxproj b/DateHelper.xcodeproj/project.pbxproj index 32a2196..8c00efe 100644 --- a/DateHelper.xcodeproj/project.pbxproj +++ b/DateHelper.xcodeproj/project.pbxproj @@ -360,7 +360,7 @@ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 4.5.0; + MARKETING_VERSION = 4.5.1; MTL_ENABLE_DEBUG_INFO = YES; "MTL_ENABLE_DEBUG_INFO[arch=*]" = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-macOS"; @@ -401,7 +401,7 @@ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 4.5.0; + MARKETING_VERSION = 4.5.1; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-macOS"; PRODUCT_NAME = DateHelper; @@ -547,7 +547,7 @@ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 4.5.0; + MARKETING_VERSION = 4.5.1; MTL_ENABLE_DEBUG_INFO = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-IOS"; PRODUCT_NAME = DateHelper; @@ -584,7 +584,7 @@ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 4.5.0; + MARKETING_VERSION = 4.5.1; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-IOS"; PRODUCT_NAME = DateHelper; @@ -617,7 +617,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 4.5.0; + MARKETING_VERSION = 4.5.1; MTL_ENABLE_DEBUG_INFO = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-tvOS"; PRODUCT_NAME = DateHelper; @@ -655,7 +655,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 4.5.0; + MARKETING_VERSION = 4.5.1; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-tvOS"; PRODUCT_NAME = DateHelper; @@ -691,7 +691,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 4.5.0; + MARKETING_VERSION = 4.5.1; MTL_ENABLE_DEBUG_INFO = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-watchOS"; PRODUCT_NAME = DateHelper; @@ -728,7 +728,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 4.5.0; + MARKETING_VERSION = 4.5.1; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-watchOS"; PRODUCT_NAME = DateHelper; diff --git a/Documentation/Playground.playground/Pages/Comparing Dates.xcplaygroundpage/Contents.swift b/Documentation/Playground.playground/Pages/Comparing Dates.xcplaygroundpage/Contents.swift index 4ad69de..70c5f2a 100644 --- a/Documentation/Playground.playground/Pages/Comparing Dates.xcplaygroundpage/Contents.swift +++ b/Documentation/Playground.playground/Pages/Comparing Dates.xcplaygroundpage/Contents.swift @@ -2,7 +2,7 @@ import DateHelper /*: # Comparing Dates - Provides a way to check a date against another common scenarios like isToday, isNextWeek, is etc. + Provides common checks like isToday or isNextWeek. It can also check against another date like isSameDay or isEarlier. */ let nowDate = Date() let nextHourDate = Date().adjust(.hour, offset: 1) diff --git a/Documentation/Playground.playground/Pages/Date From String.xcplaygroundpage/Contents.swift b/Documentation/Playground.playground/Pages/Date From String.xcplaygroundpage/Contents.swift index 2760abe..2166569 100644 --- a/Documentation/Playground.playground/Pages/Date From String.xcplaygroundpage/Contents.swift +++ b/Documentation/Playground.playground/Pages/Date From String.xcplaygroundpage/Contents.swift @@ -7,7 +7,7 @@ import DateHelper `init?(detectFromString string: String)` - Uses NSDataDetector to detect a date from natural language in a string. Similar to what Apple mail does on emails. This initializer is not as efficient as `fromString:format:` and should not be used in collections like lists. + Uses NSDataDetector to detect a date from natural language in a string. It works similar to how Apple Mail detects dates. This initializer is not as efficient as **fromString:format:** and should not be used in collections like lists. */ Date(detectFromString: "It happened on August 11 of 2009") Date(detectFromString: "Tomorrow at 5:30 PM") diff --git a/README.md b/README.md index 8661ff5..de43a6f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Provides two initializers to create a date from string. - **detectFromString:** `init?(detectFromString string: String)` -Uses NSDataDetector to detect a date from natural language in a string. Similar to what Apple mail does on emails. This initializer is not as efficient as **fromString:format:** and should not be used in collections like lists. +Uses NSDataDetector to detect a date from natural language in a string. It works similar to how Apple Mail detects dates. This initializer is not as efficient as **fromString:format:** and should not be used in collections like lists. ```Swift Date(detectFromString: "It happened on August 11 of 2009") @@ -100,7 +100,7 @@ Date().toString(dateStyle: .full, timeStyle: .full) ``` ### Compare Dates -Provides a way to check a date against another common scenarios like isToday, isNextWeek, is etc. +Provides common checks like isToday or isNextWeek. It can also check against another date like isSameDay or isEarlier. - **Quick Checks** Checks date against common scenarios @@ -193,7 +193,7 @@ Date().since(secondDate, in: .week) Date().since(secondDate, in: .month) Date().since(secondDate, in: .year) ``` -### Miscelanius +### Miscellaneous **Setting the start day of the week** ```Swift