$ echo "Mar 20 2018 09:00" | perl -wMstrict -MTime::Piece -nle 'print Time::Piece->strptime($_,"%b %d %Y %H:%M")->epoch' 1521536400