Skip to content

AtomicDate

Welcome! AtomicDate is an implementation of the Simple Network Time Protocol (SNTP), written in the Java programming language. The framework enables the developer to easily write SNTP client and server components, that can be used in plain Java applications or J2EE environments.

Documentation

The place to start is the API Javadoc pages, that you can find in the downloads. The simplest way is to use net.sourceforge.atomicdate.Date, which is an extension

to java.util.Date For example:

import net.sourceforge.atomicdate.Date;
(...)
// The default constructor automatically synchronizes with the default server.
final Date date=new Date();
(...)
// The date can be synchronized anytime.
date.synchronize("my.timeserver.com");
(...)
// You can explicitly release the resources. If you don't, they'll be released
// when the object is garbage collected.
date.close();

Download

Atomicdate-1.1-total.7z

See also

Favorite site