Displaying 20 results from an estimated 7000 matches similar to: "datetime returned as string, sometimes...."
2008 Sep 18
1
Adding 1 month to a dataframe column
Dear R experts,
I have a problem in modifying one column of a dataframe with a datatime
format using a datetime operator.
Here is my dataframe A:
DATACONT PROVINCIA VALORE
1 2007-12-31 MI 1
2 2007-12-31 PV 2
3 2007-12-31 NA 3
4 2007-12-31 MI 4
5 2007-12-31 RM 5
6 2007-12-31 RM 6
7 2007-12-31 MI 7
8
2014 Mar 20
2
io mode=native precisions
Hi,
Before switching to io mode=native, I wanted to check if there are any
disadvantages or potential problem with this setting.
I virtio-blk data plane required to use this setting effectively? (as
illustrated here:
http://blog.vmsplice.net/2013/03/new-in-qemu-14-high-performance-virtio.html)
Is there a requirement on the host kernel (eg minimum version)?
Thanks in advance
Raph
2006 Mar 31
2
[Howto] custom and translated AR validation error messages
Hi,
I''m putting the finishing touches on a multi-lingual application, and
just posted a blog entry on how I did translate validation errors
generated by ActiveRecord at: http://www.myowndb.com/blog/?p=4
I found it surprisingly easy, and thought I''d document it.
The translation is based on a plugin I plan to publish really really
soon, more info whith the upcoming announcement.
2006 Apr 04
13
Myowndb: a web database built with rails
Hi all,
I wanted to announce on this list that I have launched http://myowndb.com which
is a web database built with Ruby on Rails.
The application lets the administrator users define the data structure through
a web interface like in a normal database, with:
- tables
- enhanced datatypes like emaili, web URL, and a choice in list
- relations (one to many, one to one) between tables
Once the
2012 Mar 15
1
Subtract Date Between columns
Hello
I have this little dataset, my goal is create one column in the
data.frame with between the diference DataTime and Duration.
I'm using the next code to make do this
TIME_STAMP SESSIONTIME Time TimeStart
1162343932 8320 2006-10-31 19:01:34 2006-10-31 16:42:54
1162343215 592 2006-10-31 19:02:04 2006-10-31 18:52:12
1162341465 11875
2017 Jul 22
1
last_logon SQL mapping
Hi
I have been attempting to do a mapping on the last_logon plugin. I have
been reading the documentation on mapping. is there any way to customise
a little more and create a individual SQL query for each of the
functions SELECT and UPDATE, my current SQL setup has the username and
domain in separate tables and my user_query and password_query are
concat which I do not believe can be defined
2010 Oct 13
10
Rails 2.3.8 - What happens to a datetime field between a form being submitted and the controller receiving the params
I currently have a model that simply contains one datetime field:
class CreateElectricityReadings < ActiveRecord::Migration
def self.up
create_table :clocks do |t|
t.datetime :time_keeper
t.timestamps
end
end
def self.down
drop_table :clocks
end
end
If I enter the date string "13/10/2010" into this field its showing up
in the controller as
2005 Dec 19
1
multiple databases
Hi,
I''m writing a translation plugin which takes the translations from a
database that is different than the application''s main database.
When in my plugin''s models I put this code:
ActiveRecord::Base.establish_connection(
RAILS_ENV+"-translations"
)
all my application''s models use the plugin''s database....
Why are my
2006 Jan 20
47
SQL Server datetime error
i have a problem with the datetime format of rails. i am unable to save
a dataset to the db. here''s the error message -- the original error
message was in german, so i translated it -- i get:
DBI::DatabaseError: Execute
OLE error code:80040E07 in Microsoft OLE DB Provider for SQL Server
Couldn''t convert a char-Datatype to datetime
HRESULT error code:0x80020009
2005 Mar 07
3
exclude an attribute from save
Hi,
I''ve used .save to save the attributes, but on my table there is an
autoincrementing id (not the primary key) that doesn''t need to be
inserted... but save try to INSERT it anyway... is there a way to
avoid save from acting this way or to whisper him to be more polite
this time? ;)
Thanks,
Enrico
--
"The only thing necessary for the triumph of evil
is for good men to do
2014 Mar 24
1
Re: io mode=native precisions
On 03/24/2014 03:57 AM, Raphael Bauduin wrote:
>
>
>
> On Thu, Mar 20, 2014 at 9:13 AM, Raphael Bauduin <rblists@gmail.com
> <mailto:rblists@gmail.com>> wrote:
>
> Hi,
>
> Before switching to io mode=native, I wanted to check if there are any
> disadvantages or potential problem with this setting.
> I virtio-blk data plane required
2006 Jan 15
1
how to provide plugin configuration?
Hi,
I''m finalising a translation plugin I use in one app. I''d like the
plugin the be configurable but am not sure how to provide this
configurability. For example, there''s a setting for the cookie name to
use when saving user''s prefered language. I thought of having a class
TranslationConfig like this:
class TranslationsConfig
def self.cookie_name
2008 Mar 20
4
Blank DateTime versus Nil DateTime
Hi!
These days I have been having trouble with a test that tried to test
DateTime functionality. I have discovered that a NULL DateTime is
auto-type casted to NIL by Rails.
My problem here is that I have a field :datetime and I want to allow
NULL datetimes but not wrong datetimes. With this validation if deadline
is wrong or if is is blank it returns true. How I can accomplish this?
protected
def
2006 Dec 15
1
What's up with DATETIME and TIMESTAMP in Asterisk 1.4beta3 ?
Hello,
In Asterisk 1.4 beta 3, the UPGRADE.txt file says:
Variables:
* The builtin variables ${CALLERID}, ${CALLERIDNAME}, ${CALLERIDNUM},
${CALLERANI}, ${DNID}, ${RDNIS}, ${DATETIME}, ${TIMESTAMP},
${ACCOUNTCODE},
and ${LANGUAGE} have all been deprecated in favor of their related
dialplan
functions. You are encouraged to move towards the associated dialplan
function, as these
2006 Jun 18
4
uninitialized constant Datetime
I am building an application and I have generated the scaffold for a
product.
In the list method I include something like
my_date = Datetime.now
and the result I get from the webrick is an error
uninitialized constant Datetime
Do I have to add a line with a require?
I am new at ruby on rails
thanks in advance
--
Posted via http://www.ruby-forum.com/.
2006 Jun 19
4
DateTimes get converted to Dates in XML-RPC????
Hi all -
I have written an XML-RPC app using action-web-service. Mostly works
well. Except I just noticed that my :datetime types are coming back as
:date types.
That is, when in the console I query the record via Foo.find_by_id(123) I
get back actual datetimes. If I then do it via XML-RPC, fetching that
same record I get back dates (ie. hour/minute/second are set to 00:00:00)
Any ideas?
2001 Apr 09
1
syntax error in datetime.c (PR#901)
Full_Name: Naoki Takebayashi
Version: 1.2.2
OS: Linux, RedHat 7.0/alpha
Submission from: (NULL) (152.3.12.123)
With RedHat 7.0/alpha (gcc 2.96-69), I encountered following error:
gcc -I. -I../../src/include -I../../src/include -I/usr/local/include
-DHAVE_CONFIG_H -mieee -O2 -mieee -c datetime.c -o datetime.o
datetime.c: In function `do_systime':
datetime.c:306: parse error before `ans'
2006 Apr 25
2
DateTime format YYYY-MM-DDTHH:MM:SSZ ????
Hi all -
Implementing my first web service with rails and trying things out using
the "/controller/invoke" interface. Mostly works fine.
But I have a function that takes a datetime and returns all rows that are
newer than that. According to the log the SQL it''s generating is this:
SELECT * FROM xxxx WHERE (created_at >= ''2006-04-25T13:18:31Z'')
I have
2008 May 30
1
Is DateTime and Time interchangeable?
I have datetime (SQL) column in my DB, and I noticed whenever I
retrieve that column using ActiveRecord, it returns an object of class
Time instead of DateTime. Does Rails convert treat datetime and time
as if they''re the same?
Eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2009 Sep 18
4
Datetime conversion
I'm relatively new to R .I tried converting the datetime column with values
like 01apr1985:00:00:00.000 using strptime(datetime,"%d%b%Y).Could anyone
help me in this regard .Please reply ASAP i need .
--
View this message in context: http://www.nabble.com/Datetime-conversion-tp25503138p25503138.html
Sent from the R help mailing list archive at Nabble.com.