${TodayDate} evaluate datetime.date.today().strftime('%Y%m%d') datetime
${CurrentMonthFirstDay} evaluate datetime.date.today().replace(day=1) datetime #返回当月的1号
${LastMonthFirstDay} evaluate (datetime.date.today().replace(day=1) - datetime.timedelta(1)).replace(day=1) datetime #返回上月的1号
${Year} evaluate datetime.date.today().year datetime
${Month} evaluate datetime.date.today().month datetime
#返回指定年和月的第一天是星期几,这个月总共有多少天。 #日从0(星期一)到6(星期日);月从1到12。
${FirstDayforWeek} ${AllDaysForMonth} evaluate calendar.monthrange(${Year},${Month}) calendar
${NextMonthFirstDay} evaluate datetime.date.today().replace(day=1)+ datetime.timedelta(days=${AllDaysForMonth}) datetime #返回下月的1号
#返回当前日期N天后的日期
${NextNDays} evaluate datetime.date.today()+ datetime.timedelta(days=24) datetime
#返回当前日期N天前的日期
${LastNDays} evaluate datetime.date.today()+ datetime.timedelta(days=-24) datetime
#获取上个月份
${LastMonth} evaluate ((datetime.date.today().replace(day=1) - datetime.timedelta(1)).replace(day=1)).strftime('%Y%m') datetime
#获取下个月份
${NextMonth} evaluate (datetime.date.today().replace(day=1)+ datetime.timedelta(days=${AllDaysForMonth})).strftime('%Y%m') datetime
#获取这个月最后1天日期
${MonthLastDay} evaluate datetime.date.today().replace(day=1)+ datetime.timedelta(days=${AllDaysForMonth}-1) datetime
#获取上个月最后1天日期
${LastMonthLastDay} evaluate (datetime.date.today().replace(day=1) - datetime.timedelta(1)) datetime
#获取下个月最后1天日期
${FirstDayforWeek} ${AllDaysForNextMonth} evaluate calendar.monthrange(${NextMonth[0:4]},${NextMonth[4:6]}) calendar
${NextMonthLastDay} evaluate datetime.date.today().replace(day=1)+ datetime.timedelta(days=${AllDaysForMonth})+ datetime.timedelta(days=${AllDaysForNextMonth}-1) datetime