search for: monthname

Displaying 11 results from an estimated 11 matches for "monthname".

2008 Sep 23
3
Finding distinct months using find_by_sql
...hat might be seen under the ''Archives'' section of a blog page, like this: September 2008 August 2008 July 2008 etc. I have tried to set the following sql statement in my controller to find the months using find_by_sql: @headlines_month = Headline.find_by_sql("SELECT distinct MONTHNAME(date) FROM headlines") However, this errors out as: PGError: ERROR: function monthname(date) does not exist at character 17 HINT: No function matches the given name and argument types. You may need to add explicit type casts. : SELECT distinct MONTHNAME(date) FROM headlines It''s...
2009 May 14
1
replacing default axis labels on a plot
I have 3 columns: flow, month, and monthname, where month is 1-12, and monthname is name of month. I can't get the plot to replace the 1-12 with monthname using ticks.lab. What am I doing wrong? plot(flow~factor(month),xlab="Month",ylab="Total Flow per Month", ylim=c(0,55000), ticks.lab="monthname") Thank...
2006 Jan 16
8
[newbie] This Month / Next Month / The One After That
What I want to do is simple. I''d like code that prints out the name of this month (January) the next month (February) and the one after that (March) I''ve been able to print this month: <% t = Time.now %> <%= t.strftime(" This Month is: %B") %> But I can''t figure out how to get the next months to print out! -- Posted via
2009 Apr 21
2
Date Time format in Ruby
Can anyone give a suggestion so that i can able to format the date as like this 3th - 5th June 2009 -- Posted via http://www.ruby-forum.com/.
2006 Apr 05
7
Archive monthly count for blog
I am creating a blog to learn ruby on rails. from the layout page i pass all the posts as a collection to _archive.rhtml <%= render :partial => "archive", :collection => @archive %> On _archive.rhtml i have access to the collection. I am then gone to render partial another page _archivecount.rhtml to display the number of posts for each month. Can anyone give a clue
2006 Aug 15
2
Apache & FCGI: Premature end of script headers:
...cessLifeTime 86400 IdleTimeout 80 DefaultMaxClassProcessCount 8 </IfModule> Dispatch.fcgi is running fine if I start direct from command line with the following message (ignore the warning - I have to clean this up): ../config/../vendor/date.rb:3: warning: already initialized constant MONTHNAMES ../config/../app/helpers/account_helper.rb:56: warning: don''t put space before argument parentheses ../config/../app/helpers/account_helper.rb:57: warning: don''t put space before argument parentheses ../config/../app/controllers/application.rb:27: warning: already initialized...
2008 Mar 07
0
How to do a time-stratified case-crossover analysis for air pollution data?
...e(startdate) dates<-date1 + (ti-1) tyda<-weekdays(dates) tymo<-months(dates) tyyear<-as.character(dates) for (i in 1:n) { ask<-tyyear[i] tyyear[i]<-substr(ask,1,4) } moeff<-cumsum(c(1,31,28,31,30,31,30,31,31,30,31,30)) a<-as.Date("1994-12-31") monthnames<-months(a+moeff) tymofa<-match(tymo,monthnames) moeff<-.5*sin(2*pi*moeff/365 + 127) #new version; to have strictly stationary levels of air-pollution #within strata pm10<-2 + .5*moeff[tymofa] + 0.1*ar1 #intercept and proportionality to pm10 coefficients of log-rate al&...
2008 Mar 07
0
How to do a time-stratified case-crossover analysis for air pollution data? Unformatted text-version, with an additional note
...date1<-as.Date(startdate) dates<-date1 + (ti-1) tyda<-weekdays(dates) tymo<-months(dates) tyyear<-as.character(dates) for (i in 1:n) { ? ask<-tyyear[i] ? tyyear[i]<-substr(ask,1,4) } moeff<-cumsum(c(1,31,28,31,30,31,30,31,31,30,31,30)) a<-as.Date("1994-12-31") monthnames<-months(a+moeff) tymofa<-match(tymo,monthnames) moeff<-.5*sin(2*pi*moeff/365 + 127) #new version; to have strictly stationary levels of air-pollution #within strata pm10<-2 + .5*moeff[tymofa] + 0.1*ar1 #intercept and proportionality to pm10 coefficients of log-rate al<- -2.5 be&...
2006 Aug 13
0
Announcement: Really simple localization plugin
...#39;'re used to. The simple approach also makes limits. Make sure you understand them to decide if this plugin is right for you. ===What it does This plugin modifies the following most used helpers for Rails * Sets UTF-8 content-type HTTP header * Sets UTF-8 connection to database * Localized monthnames on date_select etc. (but not changing the order of Y-M-D) * Localized ActiveRecord errors (and error headings) * Localized distance_of_time_in_words * Localized to_currency (but not changing the order of unit/currency) * Simple pluralization also available in the lang-file (but currently only used...
2010 Jul 21
0
cgi_process.rb:22:in `__send__': undefined method `env_table
...riteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ dispatch.cgi [QSA,L] <--- commented RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] if I run.... ./dispatch.rb ./../config/environment.rb:35: warning: already initialized constant MONTHNAMES ./../config/environment.rb:36: warning: already initialized constant DAYNAMES /home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/cgi_process.rb:22:in `__send__'': undefined method `env_table'' for nil:NilClass (NoMethodError) from /home/mirumb5/ruby/gems/ge...
2012 Sep 28
0
Wine release 1.5.14
...mshtml: Added better IActiveScriptSiteWindow implementation. mshtml: Added IActiveScriptSiteUIControl implementation. mshtml: Added IActiveScriptSiteUIControl tests. include: Added uiautomationcoreapi.h. vbscript: Added WeekDayName implementation. vbscript: Added MonthName implementation. vbscript: Added Now() implementation. vbscript: Added StrReverse implementation. vbscript: Fixed copy&paste typo in invoke_builtin. hhctrl.ocx: Get rid of no longer needed hack. Jason Edmeades (5): cmd: Fix parameterization around delimiters....