Green’s Dictionary of Slang

valentine n.

[ironic uses of SE]
[1910s–40s]

1. (US prison) a short sentence, max. one year.

2. (US police) a reprimand, a punishment.