linux 获取前一分钟时间

date -d "1 minute ago" +"%Y-%m-%d %H:%M:%S"

eg:

转载来自:纯

猜你喜欢

转载自blog.csdn.net/qq_35440040/article/details/85683819