From: Yaxm Yaxm Date: 2007-05-01T12:01:51+09:00 Subject: Re: how to represent Date before epoch as a integer yeah. using Julian Day number works. But there's no years_ago method in date class. guess I need to write one. Thanks. Nobuyoshi Nakada wrote: > Hi, > > At Mon, 30 Apr 2007 09:35:06 +0900, > Yaxm Yaxm wrote in [ruby-talk:249588]: >> I'd like to represent a user's birth date as a integer number, so that I >> can tell Ferret to do the comparision easily. > > Date supports Julian Day Number. > > Date.today.jd #=> 2454221 -- Posted via http://www.ruby-forum.com/.