Does anyone know if a Ruby package has been written to handle
functionality similar to php’s strtotime(). I’m looking for something
that can parse almost any string (such as “1 day ago”, “+1 week”,
“last tuesday”) into a timestamp.
I’ve played with ParseDate, but it doesn’t seem to do what I need. Any
suggestions?
Derek
Derek DeVries wrote:
Does anyone know if a Ruby package has been written to handle
functionality similar to php’s strtotime(). I’m looking for something
that can parse almost any string (such as “1 day ago”, “+1 week”,
“last tuesday”) into a timestamp.
I’ve played with ParseDate, but it doesn’t seem to do what I need. Any
suggestions?
Derek
I was looking into this a bit myself recently. There are some SQL
functions in MySQL that might be helpful, but I haven’t found a true
ruby implementation of this yet.
_Kevin
Search the mail archives for this… someone just posted an announcement
in the last day
or so about a package they wrote that does this. It was pretty
impressive… understood
all your examples I think…
b
Ben M. wrote:
Search the mail archives for this… someone just posted an announcement
in the last day
or so about a package they wrote that does this. It was pretty
impressive… understood
all your examples I think…
b
I think that was a JS date select widget. While useful for interfaces,
I don’t think you can easily use it for other purposes.
_Kevin