What is TrueTime?

TrueTime is an NTP client for Swift. Calculate the time “now” impervious to manual changes to device clock time.

In certain applications it becomes important to get the real or “true” date and time. On most devices, if the clock has been changed manually, then an NSDate() instance gives you a time impacted by local settings.

Users may do this for a variety of reasons, like being in different timezones, trying to be punctual and setting their clocks 5 – 10 minutes early, etc. Your application or service may want a date that is unaffected by these changes and reliable as a source of truth. TrueTime gives you that.

Overview

  • Pricing: Free
  • Resource Link: https://github.com/instacart/TrueTime.swift
  • Resource Maker: Instacart
  • Mobile Platform Destination: iOS Apps
  • Mobile Platform Support: Native iOS
  • Programming Languages: Swift
  • iOS Versions Supported: iOS 8.0+, iOS 9.0+, iOS 10.0+, iOS 11.0+, iOS 12.0+
  • CocoaPods: TrueTime
  • Carthage: instacart/TrueTime.swift