Meaning of hard time in English:
hard time
noun
slang USTime spent in prison, especially as part of a long sentence served for a serious crime; frequently in "to do (also serve) hard time".
Origin
Late 19th century; earliest use found in Burlington (Iowa) Hawk-eye.
Are You Learning English? Here Are Our Top English Tips