Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Keeping Time with the AS/400

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Keeping Time with the AS/400

    ** This thread discusses the article: Keeping Time with the AS/400 **
    ** This thread discusses the Content article: Keeping Time with the AS/400 **
    0

  • #2
    Keeping Time with the AS/400

    ** This thread discusses the article: Keeping Time with the AS/400 **
    I have been getting this error of late: ** TimeSync:Scanning URL http://tycho.usno.navy.mil/cgi-bin/timer.pl ** TimeSync:HTML content ** TimeSync: ** TimeSync:

    US Naval Observatory Master Clock time ...

    ** TimeSync:

    ** TimeSync: May 16, 2002, 11:01:22 Universal Time ** TimeSync Error:Could not connect to null. Error =java.text.ParseException: Unparseable date: " May 16, 2002, 11:01 GMT" ** TimeSync Error:Universal time not found. Java program completed Is it me, or has something changed at USNO?

    Comment


    • #3
      Keeping Time with the AS/400

      ** This thread discusses the article: Keeping Time with the AS/400 **
      Looks like the USNO format has changed slightly. Try changing the dateformat as follows.
      old line: private SimpleDateFormat dfmt = new SimpleDateFormat("MMM. dd, yyyy, HH:mm zzz"); new line: private SimpleDateFormat dfmt = new SimpleDateFormat("MMM dd, yyyy, HH:mm zzz"); 
      A quick test seems to work ok.

      Comment

      Working...
      X