Tag Archives: Haskell

More Time Utilities (14/365)

In the previous post I introduced a basic date-time type and said that I’ll provide a DSL to do much more with it. Here is a date-time matching DSL I will support. data Match = DowMatch (UArray Int Bool) | … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

More Time Utilities (13/365)

Suppose you want to add one second to the current date. One approach is to convert it to unix-time (seconds from epoch), add , and then convert it back. The cost of converting is a little too high if we … Continue reading

Posted in Uncategorized | Tagged , | 1 Comment