Displaying 20 results from an estimated 20000 matches similar to: "Anybody have a week ending date helper?"
2006 Jun 15
4
parse only seem to understand US date format
I''ve tried Time.parse() and DateTime.parse() but they interpret the date
as US format. Is there any way to tell it to interpret as dd/mm/yyyy?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 10
1
Bizzare Date, DateTime, date_select issues
I''ve been banging my head against this wall for several hours, and it
hurts now so I''ll stop and ask someone.
In one of my forms I had been using a statement to extract the current
year for use with some form field calculations.
<% currentyear = DateTime.now.year %>
And then further down several date_selects like the following,
<%= date_select
2012 Apr 17
6
ActiveRecord with different Date/Time format
I have an application where user sets his/her preferred date/time
format. User is expected to enter datetime in his preferred format
across the application. Now the problem is for few formats the datetime
is parsed wrongly while create/update ActiveRecord.
For example user has set date/time format in hh:mm dd/MM/yyyy. Now if
user enters 17:00 04/05/2012 it parses it as 5 PM 5 Apr, 2012 where it
2006 Mar 18
1
Date formatting and adding question
Hey all,
I''m working on a site for a client that has a scedule im trying to
display that pulls the next events for the upcoming Sunday from a MySQL
table....The table stores the event date as mm/dd/yyyy. I''ve tried to
think of everyway possible to get this thing to change after every
sunday to show the next sunday''s events, but I end up doing it
manually...
Is it
2011 Sep 08
2
help subsetting data based on date AND time
Dear R Community,
I am new to R, and have a question that I suspect may be quite simple but is
proving a formidable roadblock for me. I have a large data set that
includes water-quality measurements collected over many 24-hour periods.
The date and time of sample collection are in a combined Date/Time field in
the format yyyy-mm-dd hh:mm:ss. I need to be able to subset the data for
analysis of
2005 Oct 11
6
adding 1 month to a date
Within an R dataset, I have a date field called “date_”. (The dates are in the format “YYYY-MM-DD”, e.g. “1995-12-01”.)
How can I add or subtract “1 month” from this date, to get “1996-01-01” or “ “1995-11-01”.
---------------------------------
[[alternative HTML version deleted]]
2017 Dec 30
0
10 Minute Time Window Aggregate By Multiple Grouping Variables
Hello All,
I have 1M rows of time stamped information about delivery trucks and their
trip related information from simulation .Detailed info the column names
and attributes for clarity
1. id: alphanumeric factor/character
2. datetime.of.trip.start: POSIXct yyyy-mm-dd hh:mm:ss
3. datetime.of.trip.end: POSIXct yyyy-mm-dd hh:mm:ss
4. trip.distance: numeric, miles
5.
2006 May 03
6
sql server, date and time
Hey there all,
Is there some way to tell rails or sql server to ignore the time in a
datetime field when doing a comparison?
For example, if I do something like
select * from users where registration_date = ?, @date
where @date might equal some user input like ''03/14/2006''
The result is nothing returned, because in my tables the datetime
field looks like this:
3/14/2006
2006 Mar 10
14
Oracle Date type errors rails on edit
I have a table with "expires_on" a DATE field.
"Show" and "Destroy" work, but "Edit" errors:
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/date_helper.rb:150:in
`select_hour''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/date_helper.rb:149:in
`select_hour''
It only happens when
2007 Feb 21
2
date helper bug?
I''ve found an issue when trying to use the time_ago_in_words and
distance_of_time_in_words from action view''s date_helper.rb
Using SQL Server, I have a datetime column that gets returned as:
"2007/02/21 09:54:00". When I pass this to time_ago_in_words (which
just passes on to distance_of_time_in_words) it miscalculates the
difference as "9 hours" (...um yeah,
2012 Jan 20
2
Incorrect DateTime using ISOdatetime in R
Dear list,
I need to transform the DateTime of my GPS data from:
"666.1751" into "yyyy/mm/dd hh:mm:ss"
I have the following code:
d$Date <- ISOdatetime(2009, 1, 1, 0, 0, 0, tz = "GMT")+d$Date*(24*3600)
This gives me: 2010-10-29 04:12:09, which is wrong. It should be 2010-10-29
06:12:09
Another example:
418.3219 corresponds to: 2010-02-23 07:43:30, but it
2007 Apr 27
0
Update of xlsReadWrite package
The (*windows only*) xlsReadWrite package has been updated and the new
version is available on CRAN.
xlsReadWrite natively reads and writes Excel files (v97 - 2003).
o Changes from v1.1.1 to v1.3.3 (versions between never really published)
- ROWNAMES-support also for matrices (not only for data.frame)
- explicit rowNames argument in interface.
(stimulated by email Adrian Dusa)
-
2006 Apr 07
3
Inline editing of datetime and dropdown select objects?
I don''t believe that Rails has support for the inline editing of
datetime objects or dropdown combo boxes.
Does anyone have a helper function or two that would allow me to do such
a thing?
--
Posted via http://www.ruby-forum.com/.
2007 May 31
1
plotting variable sections of hourly time series data using plot.zoo
Dear list,
I have to look examine hourly time - series and would like to plot variable
section of them using plot.zoo.
Hourly time series data which looks like this:
YYYY MM DD HH P-uk P-kor P-SME EPOT EREA RO R1
R2 RGES S-SNO SI SSM SUZ SLZ
2003 1 1 1 0.385 0.456 0.021 0.000 0.000 0.000 0.013
0.223 0.235 0.01 0.38
2004 Feb 23
6
Need help on parsing dates
I know this:
> library(date)
> x="1979-04-04"
> try=as.date(x, "ymd")
> print(try)
[1] 4Apr79
and that `x' here has to be a string, e.g.:
> x=1979-04-04
> print(x)
[1] 1971
I'm stuck in reading from a file. I say:
> A <- read.table(file="try")
> print(A)
V1 V2
1 1979-04-04
2012 Jun 08
0
embeding xml to ogg
Oleksij Rempel <bug-track at fisher-privat.net> wrote:
> Ok,
> you are right, using existing technology will save time :)
What has not yet been discussed is what you
are streaming *to*. That is to say, what
software is going to receive the metadata, and
what will it do with it.
This is important because VorbisComments
can contain pretty much anything you want.
Suggestions for field
2006 Feb 22
0
validates_format_of datetime?
What''s the best way to check a field to ensure it is a valid datetime? I
could validates_format_of :with a regular expression for "yyyy-mm-dd
hh:mm:ss", but I''m wondering if there is a more direct way to do this.
--
Posted via http://www.ruby-forum.com/.
2007 Aug 07
1
how to convert decimal date to its equivalent date format(YYYY.mm.dd.hr.min.sec)
Hello R Users,
How to convert decimal date to date as YYYY.mm.dd.hr.min.sec
For example, I have decimal date in one column , and want to convert and
write it in equivalent date(YYYY.mm.dd.hr.min.sec) in another next six
columns.
1979.000000
1979.020833
1979.041667
1979.062500
Is it possible in R ?
Kindly help,
Regards,
Yogesh
--
Dr. Yogesh K. Tiwari,
Scientist,
Indian Institute
2011 Jul 08
2
Excel export date format
Hi folks,
I have been tormented for some time by Excel's habit of exporting dates
to CSV files as mm/dd/yyyy format even if the dates are formatted
dd/mm/yyyy in the display. What's worse, if there are dates that are of
ambiguous (6/6/2011) and unambiguous (16/6/2011) format in the same
column, Excel reformats the unambiguous dates and leaves the ambiguous
ones as they were! Yesterday
2007 Apr 23
3
How to change Date format
Hi all,
I am using InstantRails with MySQL-Front. Date is stored in format
yyyy-mm-dd
in database. I want to retrieve and show date in dd-mm-yyyy in my
view.rhtml.
How can I change it to dd-mm-yyyy form.
Please help me out.
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google