[Haskell-cafe] Re: How to work with date?

Jon Fairbairn jon.fairbairn at cl.cam.ac.uk
Mon Mar 2 07:14:18 EST 2009


Bulat Ziganshin <bulat.ziganshin at gmail.com> writes:

> Hello Jon,
>
> Monday, March 2, 2009, 2:22:55 PM, you wrote:
>
>> take 10 $ map (addDays (-1)) $ repeat $ utctDay $ zonedTimeToUTC now
>
> take 10 $ iterate (addDays (-1)) $ utctDay $ zonedTimeToUTC now

take anything I post before 14:00 with a pinch of salt. Or
something stronger.

-- 
Jón Fairbairn                                 Jon.Fairbairn at cl.cam.ac.uk




More information about the Haskell-Cafe mailing list