All Projects → instacart → Truetime Android

instacart / Truetime Android

Licence: apache-2.0
Android NTP time library. Get the true current time impervious to device clock time changes

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Truetime Android

telltime
iOS application to tell the time in the British way 🇬🇧⏰
Stars: ✭ 49 (-95.68%)
Mutual labels:  time, clock
simple-analog-clock
Simple clock view for displaying uh...time?
Stars: ✭ 24 (-97.88%)
Mutual labels:  time, clock
vue-analog-clock-range
Vue Analog Clock Range Component
Stars: ✭ 53 (-95.33%)
Mutual labels:  time, clock
time
The simplest but configurable online clock
Stars: ✭ 77 (-93.21%)
Mutual labels:  time, clock
Md Date Time Picker
An implementation of Material Design Picker components in vanilla CSS, JS, and HTML
Stars: ✭ 272 (-76.01%)
Mutual labels:  time, clock
clocklet
An opinionated clock-style vanilla-js timepicker.
Stars: ✭ 31 (-97.27%)
Mutual labels:  time, clock
timestampy
🕒 Bunch of utilities useful when working with UNIX timestamps
Stars: ✭ 21 (-98.15%)
Mutual labels:  time, clock
Tzupdate
Set the system timezone based on IP geolocation
Stars: ✭ 130 (-88.54%)
Mutual labels:  time, clock
clock
High-resolution clock functions: monotonic, realtime, cputime.
Stars: ✭ 52 (-95.41%)
Mutual labels:  time, clock
MD DS3231
DS3231 Real Time Clock Library
Stars: ✭ 29 (-97.44%)
Mutual labels:  time, clock
ardusamber
Desamber time Arduino corporealization
Stars: ✭ 20 (-98.24%)
Mutual labels:  time, clock
Portable Snippets
Collection of miscellaneous portable C snippets.
Stars: ✭ 397 (-64.99%)
Mutual labels:  time, clock
Mentorship Android
Mentorship System is an application that matches women in tech to mentor each other, on career development, through 1:1 relations during a certain period of time. This is the Android application of this project.
Stars: ✭ 117 (-89.68%)
Mutual labels:  rxjava, mobile
TimeContinuum
No description or website provided.
Stars: ✭ 28 (-97.53%)
Mutual labels:  time, clock
React Clock
An analog clock for your React app.
Stars: ✭ 149 (-86.86%)
Mutual labels:  time, clock
ElevenClock
ElevenClock: Customize Windows 11 taskbar clock
Stars: ✭ 1,494 (+31.75%)
Mutual labels:  time, clock
Use Timer
A timer hook for React
Stars: ✭ 113 (-90.04%)
Mutual labels:  time, clock
React Timer Hook
React timer hook
Stars: ✭ 118 (-89.59%)
Mutual labels:  time, clock
tm
timers and timeline
Stars: ✭ 31 (-97.27%)
Mutual labels:  time, clock
Timestamp
⏰ A better macOS menu bar clock.
Stars: ✭ 296 (-73.9%)
Mutual labels:  time, clock

TrueTime for Android

TrueTime

Make sure to check out our counterpart too: TrueTime, an NTP library for Swift.

NTP client for Android. Calculate the date and 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 a new Date() 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 by 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.

You can read more about the use case in our blog post.

In a recent conference talk, we explained how the full NTP implementation works with Rx. Check the video and slides out for implementation details.

Also, once we have this information it's valid until the next time you boot your device. This means if you enable the disk caching feature, after a single successful NTP request you can use the information on disk directly without ever making another network request. This applies even across application kills which can happen frequently if your users have a memory starved device.

Installation

See the wiki instructions.

Wiki has a lot of useful information

Take a look at the wiki sidebar which should have a lot of useful information.

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].