New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

com.github.berry120.ac500:ac500

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.berry120.ac500:ac500

Simple Java library for retrieving time information from the Galleon AC500 atomic clock receiver.

  • 1.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Codacy Badge Build Status

AC500

AC500

A simple Java libary for retrieving time information from the Galleon AC500 atomic clock receiver.

It will generally return the correct time to the nearest second or so, but is not hugely accurate beyond this point since it does not (at present) account for the transmit time. PR's to take the exact transmit time into account are welcome - it should be reasonably easy to calculate from the baud rate.

Use at your peril - this is nothing more than a thrown together proof of concept at present :-)

JSSC is required as a dependency for the serial communication.

Setup

Maven

<dependency>
  <groupId>com.github.berry120.ac500</groupId>
  <artifactId>ac500</artifactId>
  <version>1.0</version>
</dependency>

Gradle

compile 'com.github.berry120.ac500:ac500:1.0'

Example usage:

AC500 ac500 = new AC500("COM2");                              //Change to whatever port the AC500 is attached to.
ZonedDateTime ldt = ac500.getTime().asZonedDateTime();        //Get current time as the Java 8 LocalDateTime object
DateTimeFormatter dtf = DateTimeFormatter.RFC_1123_DATE_TIME;
System.out.println(dtf.format(ldt));                          //eg. Wed, 7 Jan 2015 17:30:13 GMT

FAQs

Package last updated on 26 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc