The div element below is styled using this plugin, for times in the AM it will have a grey background and in the PM a yellow background. This is done dynamically by javascript. Whilst this is atrivbial example, when this functionality is combined with pseudo elemenets this technique can be very powerful.

LH CCS Dates and times test div
If you like this plugin please consider making a donation to further development