gcgc

robot中先导入DateTime库

 

    #获取当前时间:2019-07-31 10:46:29.940
    ${time}    Get Current Date    result_format=timestamp
    #转化为原始时间戳:1564541189.94
    ${time_stamp}    Convert Date    ${time}    epoch
    #转化为毫秒级时间戳:1564541189940
    ${time_stamp2}    evaluate    int(round(${time_stamp} * 1000))

其他时间操作:

参考:https://blog.csdn.net/r455678/article/details/52993765

 

分类:

技术点:

相关文章:

  • 2022-01-21
  • 2021-11-18
  • 2021-11-18
  • 2021-12-30
  • 2022-01-09
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
猜你喜欢
  • 2021-11-18
  • 2021-11-18
  • 2021-12-09
  • 2021-11-18
  • 2021-12-05
  • 2021-11-18
  • 2021-11-18
相关资源
相似解决方案