[Haskell-cafe] What is the good way to work with list comprehension and UTCTime?

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Tue Sep 18 03:52:22 CEST 2012


Thank you. Will do.

On Mon, Sep 17, 2012 at 7:14 AM, Antoine Latter <aslatter at gmail.com> wrote:
> On Sun, Sep 16, 2012 at 5:04 PM, Richard O'Keefe <ok at cs.otago.ac.nz> wrote:
>>
>> On 15/09/2012, at 5:14 AM, Chris Heller wrote:
>>
>>> You might want to have a look at the time-recurrence package: http://hackage.haskell.org/package/time-recurrence
>>>
>>> For your simple cases you would do something like:
>>>
>>> Each second:
>>>
>>>     starting (UTCTime ...) $ recur secondly
>>>
>>> Each minute:
>>>
>>>     starting (UTCTime ...) $ recur minutely
>>
>> Ouch.  Look up "minutely" (my-NEWT-ly) in an English
>> dictionary.  Look up "secondly" while you're there.
>>
>>
>
> You can blame RFC 5545 for that one. In section 3.3.10. our frequencies are:
>
> freq        = "SECONDLY" / "MINUTELY" / "HOURLY" / "DAILY"
>                    / "WEEKLY" / "MONTHLY" / "YEARLY"
>
> Antoine
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



-- 
竹密岂妨流水过
山高哪阻野云飞

And for G+, please use magiclouds#gmail.com.



More information about the Haskell-Cafe mailing list