A man who shoved a stranger off a busy train platform has been told to expect an almost year-long jail sentence.