Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: add 1 minute to current time in 24H Format..??  (Read 2859 times)

0 Members and 1 Guest are viewing this topic.

gumbaz

    Topic Starter


    Intermediate

    add 1 minute to current time in 24H Format..??
    « on: September 04, 2008, 06:37:01 AM »
    how can i get the current time in 24H format, then add 1 minute to it..??

    Ex:
    current time is 5:45PM
    5:45PM = 17:45  24H-Format
    add 1 minute to 17:45 = 17:46

    Set TIME1=17:46

    devcom



      Apprentice

      Thanked: 37
      Re: add 1 minute to current time in 24H Format..??
      « Reply #1 on: September 04, 2008, 10:32:21 AM »
      use this code and finish this yourself ;)

      Code: [Select]
      set tmptime=%time:~0,5%
      set tmphou=%time:~0,2%
      set tmpmin=%time:~3,2%
      Download: Choice.exe

      Dias de verano

      • Guest
      Re: add 1 minute to current time in 24H Format..??
      « Reply #2 on: September 04, 2008, 10:42:25 AM »
      and what are you going to do at 23:59?

      gumbaz

        Topic Starter


        Intermediate

        Re: add 1 minute to current time in 24H Format..??
        « Reply #3 on: September 04, 2008, 06:47:35 PM »
        and what are you going to do at 23:59?

        Throw spider monkeys into the temporal time portal worm hole that will open because of celestial quantum 24-Hour time format dimensional pole shift paradox....HUH..??

        I Will Do This Becuz That Is Where The Real Enemies Are..
        In The Futuer An Advance Race Of Unstopable Mechanised Imigrant Chinabots & Mexiborgs Will Travel Back To Earth In Time Machines
        Clone Our Jobs An Beam Them Back To Thier 3rd World Mother Ships Controlled By A Danny Davito Clone..
        And Dont Forget About The Burden That These Uninsured Mexiborgs Will Put On Our Health Care Systems..
        They'Re Mexiborgs Dude.. They'Re Poorly Made, Remeber They'Re From Mexico..

        But Theres Still Time....

        Thers Still Time.. Ehh.. Ehhh..
        To Send Me Into Zee Future...
        I Will Disquiese Myself As A Mexiborg And Go By zee Name Raoool-5000
        I Will Hang Around Zee Time Machines And Say Things Like "Hey Guys Its Pretty Nice Here In The Future No Need To Go Back To The Present"
        And Then They Will Say "Don't You Mean The Past" And I Will Say "Why, Did I Call It The Present, My Mistake"
        And Then They Will Say "Hey..!! He'S From The Past, Get Him..!!"
        Then I'll Tear Of My Virtual Poncho...
        Take Out My Twin Gatling Guns...
        And Blast All Zee Chinabots & Mexiborgs Away -- In Slow Motion...
        Take Da Cigar Out Of My Mouth.
        Turn To Zee Camera And Say "Now Thats A Blast From zee Past 23:59..!!!"

        Dias de verano

        • Guest
        Re: add 1 minute to current time in 24H Format..??
        « Reply #4 on: September 05, 2008, 12:07:11 AM »
        I meant, how are you going to cope with the rollover of hours and minutes that happens at midnight?

        Your dumb answer didn't make me want to help you very much. Try to grow up.



        Aegis



          Expert

          Thanked: 67
          • Yes
          • Yes
          • Brian's Mess Of A Web Page
        • Experience: Experienced
        • OS: Windows 10
        Re: add 1 minute to current time in 24H Format..??
        « Reply #5 on: September 05, 2008, 01:30:23 AM »
        Would you have to write some kind of "subroutine" to check if you're going to "00" in the minutes field, then you "bump up" the hours field by 1 ?? 

        I'm hoping my idiocy doesn't blind everyone!   ::)


        "For you, a thousand times over." - "The Kite Runner"

        Dias de verano

        • Guest
        Re: add 1 minute to current time in 24H Format..??
        « Reply #6 on: September 05, 2008, 01:52:28 AM »
        If we actually knew what the OP was trying to achieve,  ::) we could deliver a more focussed solution that has been possible so far.

        ghostdog74



          Specialist

          Thanked: 27
          Re: add 1 minute to current time in 24H Format..??
          « Reply #7 on: September 05, 2008, 08:51:51 AM »
          dude, if you have the patience, you can just wait for 1 min  using ping or sleep

          Dias de verano

          • Guest
          Re: add 1 minute to current time in 24H Format..??
          « Reply #8 on: September 05, 2008, 10:42:28 AM »
          You can use VBscript to get the uptime (now), compute the uptime in 60000 milliseconds time, then in a loop keep checking if the uptime value has exceeded the computed value.