UNB/ CS/ David Bremner/ teaching/ java/ Time2.java
import ccj.*;

public class Time2
{  public static void main(String[] args)
   {  Time now = new Time();
      Time millennium = new Time(2000, 1, 1, 0, 0, 0);
      double seconds = millennium.secondsFrom(now);

      System.out.println("The new millennium is "
         + seconds
         + " seconds or " + (seconds / SECONDS_PER_DAY)
         + " days from now.");
   }

   public static final double SECONDS_PER_DAY
      = 24 * 60 * 60;
}