位置: shell 日期运算 - 标签
linux中Shell日期转为时间戳的方法(shell 日期运算)
简述:shell中获取时间戳的方式为:date-d“$currentTime”+%s$date-d@"+%c"SunMay::PMCST如果要将一个日期转为时间戳,方式如下:1、得到当前时间currentTime=`
发布时间:2024/02/26
鄂ICP备2023003026号