Date functions from the

haskell-chart example.