#!/usr/bin/expect
set date [ clock format [ clock seconds ] -format "%Y%m%d" ]
set secon [ clock seconds ]
set yestoday_secon 0
#set i [expr {$i + 1}] #获取前一天时间
set yestoday_secon [expr {$secon - 86400} ]
set yestoday [ clock format [ expr {$yestoday_secon} ] -format "%Y%m%d" ]
puts "\n date = $date"
puts "\n secon = $secon"
puts "\n yestoday_secon = $yestoday_secon"
puts "\n yestoday = $yestoday"
expect 时间获取 ,上传下载文件用
最新推荐文章于 2021-12-21 11:35:50 发布