shell时间转换成utc时间

#!/bin/sh

firstday_before_month=`date -d '1 month ago' +%Y-%m-01`
month_date_utc=`date -d "$firstday_before_month 08:00:00" +%s'000'`
echo $firstday_before_month
echo $month_date_utc

-- The End --

原文地址:https://www.cnblogs.com/hxlasky/p/14084367.html