Results 1 to 4 of 4

Thread: Java Count Down Clock

  1. #1
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Java Count Down Clock

    I need to create a recurring count down clock that counts down to 6:00pm every day. I am really struggling to do this. I can create a count down to a date but not a reacurring every day cound down.

    Can anyone here help with this?
    □ΞVΞ□

  2. #2
    Going Retro!!! Ferral's Avatar
    Join Date
    Jul 2003
    Location
    North East
    Posts
    7,860
    Thanks
    562
    Thanked
    1,439 times in 877 posts
    • Ferral's system
      • Motherboard:
      • ASUS Z97-P
      • CPU:
      • Intel i7 4790K Haswell
      • Memory:
      • 12Gb Corsair XMS3 DDR3 1600 Mhz
      • Storage:
      • 120Gb Kingston SSD & 2 Tb Toshiba
      • Graphics card(s):
      • Sapphire Radeon R9 380 Nitro 4Gb
      • PSU:
      • Antec Truepower 750 Watt Modular
      • Case:
      • Fractal Design Focus G Mid Tower
      • Operating System:
      • Windows 10 64 bit
      • Monitor(s):
      • 28" iiyama Prolite 4K
      • Internet:
      • 80Mb BT Fiber

    Re: Java Count Down Clock

    Found a Timer info bit on the Oracle site for Java, looks like it could help you out a bit, I dont do programming though. Worth a look though, the description seems to fit what you are wanting to do.

    http://download.oracle.com/javase/6/...til/Timer.html

    Also found an excellent post on the Java forums, granted its from 2007 but looks like it has relevant info :

    http://www.java-forums.org/new-java/...sing-java.html

    Look at the bottom post in that link.

  3. #3
    Senior Member Peter Parker's Avatar
    Join Date
    Jan 2008
    Location
    London
    Posts
    348
    Thanks
    98
    Thanked
    62 times in 47 posts
    • Peter Parker's system
      • Motherboard:
      • ASUS Z170 Pro Gaming
      • CPU:
      • i5-6600K
      • Memory:
      • 16GB DDR4
      • Storage:
      • Kingston 128GB SSD + 2x3TB
      • Graphics card(s):
      • GTX970
      • PSU:
      • SilverStone ST50EF
      • Case:
      • Silverstone Grandia GD01S-MXR
      • Operating System:
      • Fedora 33

    Re: Java Count Down Clock

    I've been doing Java development for about 10 years, so could probably help, but I'm not sure what you mean.

    Do you want it as a GUI, a console app, or just a class that you can ask for the current count down time?

    And how should the output be formatted? If the time is 12:00:01, do you want a string like "05:59:59" (or the equivalent output in a GUI?)

    Actually, you can probably knock this up in Javascript on a web page - it's just a fixed function of the current time.

  4. #4
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts

    Re: Java Count Down Clock

    If you can create a count down to a date, can't you just use that and set the 'to' date ahead 24 hours every time you hit 6pm?
    To err is human. To really foul things up ... you need a computer.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Samsung HD203WI Raw Read Error Rate
    By watercooled in forum Help! Quick Relief From Tech Headaches
    Replies: 37
    Last Post: 09-07-2010, 09:15 PM
  2. Replies: 1
    Last Post: 03-02-2008, 12:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •