首页 > 其他 > 详细

RF-获取上个月份

时间:2017-08-01 17:27:28      阅读:247      评论:0      收藏:0      [点我收藏+]

 验证1:

技术分享

case
    ${NowDate}    set variable    20170103
    ${year}    set variable    ${NowDate[0:4]}
    ${month}    set variable    ${NowDate[4:6]}
    ${Lastmonth}    set variable if    ${${month}}==${1}    12
    ...    ${${month}}==${12}    11
    ...    ${${month}}==${11}    10
    ...    0${${month}-1}
    ${year}    set variable if    ${${month}}==${1}    ${${year}-1}    ${year}
    ${LastMonthDate}    set variable    ${year}${Lastmonth}

技术分享

验证2:

技术分享

技术分享

验证3:

技术分享

技术分享

 

RF-获取上个月份

原文:http://www.cnblogs.com/apple2016/p/7269540.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!