Map using a specific Time

Alexander Sicular siculars at gmail.com
Fri Oct 29 16:12:04 EDT 2010


You need to parse the lastmodified time in the header like so:

Date.parse(lastmodified)

That method parses a date string into a unix int. I have a blog post  
about it on my blog somewhere.

-Alexander


@siculars on twitter
http://siculars.posterous.com

Sent from my iPhone

On Oct 29, 2010, at 15:53, Duff OMelia <duff at omelia.org> wrote:

> Hi,
>
> I was wondering if anyone might have an example of how to use a
> javascript Map function from Ruby which uses a specific date time.
> For example, I'd like to find the accounts which haven't been charged
> in over a month.
>
> When I do something like the following:
>
> http://gist.github.com/654246
>
> it looks as if everything on the javascript side is a string.  I was
> hoping someone might have an example I might learn from.
>
>
> Thanks!
>
>
>
> ------------------------------------------------------------
> Duff OMelia
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com




More information about the riak-users mailing list