#!/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 --
#!/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 --