Definitions of detention:
- noun:    a punishment in which a student must stay at school after others have gone home 
Example: "The detention of tardy pupils"
 - noun:    a state of being confined (usually for a short time) 
Example: "His detention was politically motivated"