Loading…

方法名称: set_date_time

方法ID: 0x40F5

方法标签: Set Date-Time

方法描述: Displays current time and date, actual time stored is in seconds since JAN 1, 1970. NOTE: Valid till 31st December 2037..


  • {
  • char status[3];
  • long i;
  • long j;
  • long n;
  • long ns;
  • long leap;
  • long dd;
  • long mo;
  • long yy;
  • long hh;
  • long mm;
  • long ss;
  • long prev;
  • long next;
  • long curr;
  • long feb;
  • long secs;
  • long days;
  • long accum_days;
  • long jday;
  • long temp;
  • long ids[2];
  • int test;
  • int format;
  • _set_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • ns = 1;
  • send(132,status);
  • if (status[0])
  • {
  • display_response_status(132,status[0]);
  • process_abort();
  • }
  • while (ns != 0)
  • {
  • switch (ns)
  • {
  • case 1:
  • send(130,status);
  • if (status[0])
  • {
  • display_response_status(130,status[0]);
  • }
  • secs = _lvar_value(16417);


请登录以获得完整内容