search for: quote_date

Displaying 2 results from an estimated 2 matches for "quote_date".

2008 Apr 14
3
Merging daily and weekly data
Dear R-help group, I have a dataset with daily closing prices from a stock exchange (consecutive 5 trading days) from a firm trading a specific commodity. The date variable looks like: quote_date 20080411 With the format; yyyymmdd. Moreover, I have another data set with a (average) weekly price of the underlying commodity. The date variables in this dataset are only year and a week number. I would like to calculate a common date number or ID based on week number that enables me to merge...
2004 Dec 07
30
Bind Variables in Active Record
...is, how to allow each database adapter to override the quoting rules for each data type. The current implementation has a series of methods like this def quote_string(value) value = value.gsub(/''/, "''''") "''#{value}''" end def quote_date(value) "''#{value.to_s}''" end etc. What''s the most logical place for this code to live? Mysql will have to override quoting rules for '', and most databases will have to provide customer formatting for Dates and Times. The current santize method liv...