How to configure time-based WMS

I have added several WebMapServiceImageryProvider to show WMS on top of the globe. Some of them have a time dimension. How do I update the included WMS layer when the time on the Cesium Timeline has changed by the user? Is there a a way to “bind” the clock of the viewer to each layer? The layers have a different time dimension format and time steps.

If it should still worry someone in the future: I have found a sandcastle for WMTS, which I had to change only slightly for WMS.