10Clock alternatives and similar libraries
Based on the "Date & Time" category.
Alternatively, view 10Clock alternatives based on common mentions on social networks and blogs.
-
SwiftDate
🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift. -
NSDate-TimeAgo
A "time ago", "time since", "relative date", or "fuzzy date" category for NSDate and iOS, Objective-C, Cocoa Touch, iPhone, iPad. -
SwiftMoment
A time and calendar manipulation library written in Swift 2 -
Schedule
Schedule timing task in Swift using a fluent API. (A friendly alternative to Timer) -
TrueTime
NTP library for Swift and Objective-C. Get the true time impervious to device clock changes. -
iso-8601-date-formatter
A Cocoa NSFormatter subclass to convert dates to and from ISO-8601-formatted strings. Supports calendar, week, and ordinal formats. -
TimeZonePicker
A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your most suitable time zone.
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of 10Clock or a related project?
README
10Clock
Dark and Mysterious🕶 | Light Colors🌻 |
---|---|
Usage
The control itsself is TenClock
. Add that to your view hierarchy, and constrain it to be square (thats kindof important).
to set times, do:
self.tenClock.startDate = NSDate()
self.tenClock.endDate = NSDate. //sometime later
make the date today.
then, to get updates for when the date changes, adopt the protocol TenClockDelegate
:
import TenClock
class ViewController: UIViewController, TenClockDelegate {
//Executed for every touch.
func timesUpdated(_ clock:TenClock, startDate:Date, endDate:Date ) -> (){
//...
}
func timesChanged(clock:TenClock, startDate:NSDate, endDate:NSDate ) -> (){
print("start at: \(startDate), end at: \(endDate)")
self.beginTimeLabel.text = dateFormatter.stringFromDate(startDate)
self.endTimeLabel.text = dateFormatter.stringFromDate(endDate)
}
// ...
Contributing
The goals of the project at this point should be testing for edgecase behavior and expanding customizability.
Please do contribute, open an issue if you have a question. Then Submit a PR! :D
Install via CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
CocoaPods 1.1.0+ is required to build 10Clock
To integrate 10Clock into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target '<Your Target Name>' do
pod '10Clock'
end
License
10Clock is released under the MIT license. See LICENSE for details.
*Note that all licence references and agreements mentioned in the 10Clock README section above
are relevant to that project's source code only.