Calculating Time for clock's preset


Results 1 to 34 of 34

Threaded View

  1. #22
    Join Date
    Jun 2008
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    I got a solution from a friend:
    This will cover all cases for start: (Same will be for end but with End values)

    HH>StartHH ||
    HH=StartHH & MM>StartMM ||
    HH=StartHH & MM=StartMM & SS>=StartSS

    Should Start programs.
    The only problem is wrap around at 23:59:00 -> 00:00:00
    But this will be handled with a special flag to identify change from PM->AM
    Last edited by menta; - 3rd July 2008 at 17:20.

Similar Threads

  1. I don't understand this code!
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 13th February 2008, 02:55
  2. Measuring time
    By AugustoPedrone in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th July 2007, 23:46
  3. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  4. Calculating elapsed time, how?
    By Eng4444 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st June 2006, 09:00
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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