在Linux上,您可以将"2010-10-02"之类的日期转换为shell脚本中的unix时间戳
date -d "2010-10-02" "+%s"
由于Mac OS没有等效的-d作为日期.如何在shell脚本中将日期转换为unix时间戳.
linux macos shell date
date ×1
linux ×1
macos ×1
shell ×1