zoukankan      html  css  js  c++  java
  • 【RF库测试】关键字get time

    *** Test Cases ***
    Timestamp
    ${time} GET TIME
    ${secs} GET TIME epoch
    ${year} GET TIME return year
    ${yyyy} ${mm} ${dd} GET TIME year,month,day
    @{time} GET TIME year month day hour min sec
    ${y} ${s} GET TIME seconds and year
    ${date} set variable ${yyyy}${mm}${dd}
    log ------------------------------------------------------
    ${time} get time 1177654467 # Time given as epoch seconds
    ${secs} get time sec 2007-04-27 09:14:27 # Time given as a timestamp
    ${year} get time year NOW # The local time of execution
    ${month} get time year month NOW
    ${yesterday} get time year month day NOW - 1 day
    ${tomorrow} get time year month day NOW + 1 day
    @{time} get time hour min sec NOW + 1h 2min 3s # 1h 2min 3s added to the local time
    @{utc} get time hour min sec UTC # The UTC time of execution
    ${hour} get time hour UTC-1 hour # 1h subtracted from the UTC time

     

  • 相关阅读:
    010 Editor无限制免费安装注册破解图文教程(破解补丁)
    请求设置
    请求方法
    Session
    Config
    Model
    模板2
    模板语法
    动态路由
    Put和Delete
  • 原文地址:https://www.cnblogs.com/apple2016/p/7020543.html
Copyright © 2011-2022 走看看