html tool

2023年2月23日星期四

转:linux date获得指定时间

 参考:https://stackoverflow.com/questions/11144408/convert-string-to-date-in-bash

This worked for me :

date -d '20121212 7 days'
date -d '12-DEC-2012 7 days'
date -d '2012-12-12 7 days'
date -d '2012-12-12 4:10:10PM 7 days'
date -d '2012-12-12 16:10:55 7 days'

没有评论:

发表评论