Loading…
Loading…
方法名称: method_set_date_time
方法ID: 0x4200
方法标签: set Date/Time
方法描述: Set current date and time.
- {
- char status[3];
- long time_to_set;
- int result_st;
- {
- _set_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- }
- ;
- result_st = 0;
- send_command(90);
- result_st = SELECT_FROM_LIST(literal_string(1609),literal_string(1608));
- if (result_st == 0)
- {
- process_abort();
- }
- time_to_set = GetCurrentTime();
- time_to_set = AddTime(time_to_set,30);
- last_clock_date_for_edit = Time_To_Date(time_to_set);
- last_clock_time_for_edit = timet_To_TIME_VALUE(time_to_set);
请登录以获得完整内容