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 --

posted @ 2020-12-04 10:26  slnngk  阅读(1244)  评论(0编辑  收藏  举报