无法在独木舟日志中打印日期和时间?

unable to print date and time in canoe logs?

有没有办法打印每次登录独木舟的日期和时间??? 例子: 现在对我来说它的打印如下

"8754.876831   CAN 1   AAA   YYYY   CAN Frame    Tx     8     8             00 00 00 00 00 00 00 00"

我想在下面点赞

"09 OCT 2017 14:17:23.853 CAN 1   AAA   YYYY   CAN Frame    Tx     8     8             00 00 00 00 00 00 00 00"

有没有办法在独木舟中像上面那样打印????

试试这个:

on key 'l'
{
  long tm[9];

  getLocalTime(tm);

  write("seconds:%d minutes:%d hours:%d day:%d month:%d year:%d",tm[0],tm[1],tm[2],tm[3],tm[4]+1,tm[5]+1900);
}