Displaying 4 results from an estimated 4 matches for "bdate".
Did you mean:
date
2006 Jan 28
1
Method for returning a random date between two dates
Hi,
I''m trying to create a method to return a random date within a range.
So far, I''ve come up with this...
require ''parsedate''
def random_date (a, b)
adate = ParseDate.parsedate(a)
bdate = ParseDate.parsedate(b)
atime = Time.local(*adate)
btime = Time.local(*bdate)
atime + (rand * (atime - btime) )
end
...and it doesn''t seem to work--the dates returned aren''t within the
given range.
Can anyone spot what I''m doing wrong, or maybe is there a be...
2007 May 27
1
Problem while working with SPSS data
..."))
data = as.data.frame(cbind(data.original$MINORITY, data.original$EDUC,
data.original$PREVEXP, data.original$JOBCAT, data.original$GENDER))
colnames(data) = c('MINORITY', 'EDUC', 'PREVEXP', 'JOBCAT', 'GENDER')
head( data.original)
ID GENDER BDATE EDUC JOBCAT SALARY SALBEGIN JOBTIME PREVEXP
MINORITY
1 1 <NA> 11654150400 15 Manager 57000 27000 98 144
No
2 2 <NA> 11852956800 16 Clerical 40200 18750 98 36
No
3 3 <NA> 10943337600 12 Clerical 21450 12000 98 381
No
4 4...
2007 Feb 16
1
array searches
Folks,
I have a dataframe comprising a column of dates and a column of signals (-1,
0, 1) that looks something like this:
30/01/2007 0
31/01/2007 -1
01/02/2007 -1
02/02/2007 -1
03/02/2007 1
04/02/2007 1
05/02/2007 1
06/02/2007 1
07/02/2007 1
08/02/2007 1
09/02/2007 0
10/02/2007 0
11/02/2007 0
12/02/2007 1
13/02/2007 1
14/02/2007 1
15/02/2007 0
16/02/2007 0
What I need to do is for each signal
2007 Dec 10
15
Scaffolding for pre-existing database table in 2.0.1
Hi,
first of all I will apologize in advance for my presumably noobish
question, but I''m only starting to learn Rails and am a little
confused with all the changes in 2.0.1. There are as good as no
tutorials out yet and the 2 or 3 screencasts I''ve seen deal with the
creation of both the app and the database.
Now my problem is that I already have a database with a fair amount of