termux-api: termux-location add "getTime()" method
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
I propose to add the output of the location.getTime() to the output of termux-location (at least for provider "gps").
This method returns the epoch time in ms for the fix. The time source is the GPS satellites atomic clock time and not the system time. This can be very useful for applications/scripts that want an accurate time even when not in vicinity of a mobile or WiFi network.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the termux-location command implementation and trace how the GPS provider's location is converted into command output. Add the location.getTime() epoch value for the GPS fix, then verify that termux-location output includes it without changing the existing fields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- cli, mobile
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100