Home AMX User Forum AMX Technical Discussion
Options

how to change system time

Hello,

We have a button that shows the current system time, but we would like to offer the possibility to change this time.

So i?d like to know if there is a way to change the system time through NetLinx code.

Thanks!!

Comments

  • Options
    I would go no further than AMX-PI
    SEND_COMMANDs:
    
     
    
       "'CLOCK <mm-dd-yyyy> <hh:mm:ss>'"
    
          Set the date and time on the Master. The date and time settings are propagated 
    
          over the local bus.
    
     
    
          Syntax: 
    
                SEND_COMMAND <DEV>,"'CLOCK <mm-dd-yy> <hh:mm:ss>'"
    
     
    
          Variable:
    
                mm-dd-yy = Month, day, and year. Month and day have 2 significant digits.
    
                                                 Year has 4 significant digits.
    
                hh-mm-ss = Hour, minute, and seconds. Each using only 2 significant digits.
    
     
    
          Example:
    
                SEND_COMMAND RS232_1,"'CLOCK 04-12-05 09:45:31'"
    
                Sets the Masters date to April 12, 2005, and time to 9:45 am.
    
  • Options
    MorgoZMorgoZ Posts: 116
    Many thanks!!

    Salutes!
Sign In or Register to comment.