Displaying 20 results from an estimated 1088 matches for "datetimes".
Did you mean:
datetime
2005 Oct 05
1
Help! Extensions
Hello How do I fix this....
[IPComms-in]
exten => ${IPCCIDN01},1,Noop(${DATETIME} ${CALLERID})
exten => ${IPCCIDN01},2,SetCallerID(${CALLERID})
exten => ${IPCCIDN02},1,Noop(${DATETIME} ${CALLERID})
exten => ${IPCCIDN02},2,SetCallerID(${CALLERID})
exten => ${IPCCIDN03},1,Noop(${DATETIME} ${CALLERID})
exten => ${IPCCIDN03},2,SetCallerID(${CALLERID})
exten =>
2013 Jan 09
4
select partial name and full name columns
Hi, I have the following function:
getDataFromDVFileCustom <- function (file, hasHeader = TRUE, separator =
"\t")
{
DVdatatmp <- as.matrix(read.table(file, sep = "\t", fill = TRUE,
comment.char = "#", as.is = TRUE, stringsAsFactors = FALSE, na.strings =
"NA"))
DVdatatmper <- as.matrix(DVdatatmp[ , c("datetime",
Overriding date_select in local project to use custom value rather than blank for starting option...
2005 May 08
3
Overriding date_select in local project to use custom value rather than blank for starting option...
I would like to have a date control on a page and I would like a
behavior similar to what you get using date_select with the
:include_blank => true option where the first value in the dropdown is
"- Month -", "- Day -", or "- Year -" rather than a blank value for
the respective month, day, and year select fields.
I took a look at the ruby source for
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
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 validate
if deadline.to_s.blank?
true
else
begin
dt = DateTime.parse(deadline.to_s)
rescue ArgumentError
errors.add(:deadli...
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 Jun 15
8
rails saves it to the database and I don''t want to
Hello:
I am developing a web application to book machines for an event.
so I have an event model
class Event < ActiveRecord::Base
has_many :datetimes
...
end
and a datetime model
class Datetime < ActiveRecord::Base
belongs_to :event
...
end
I have developed a view with the event information and information for
the datetimes. and in the event_controller when I capture a datetime I
do
@datetime = params ....
@event.datetimes << @da...
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
2012 Jul 14
3
Can't understand syntax
OK, I need help!!
I've been searching, but I don't understand the logic of some this
dataframe addressing syntax.
What is this type of code called?
test [["v3"]] [is.na(test[["v2"]])] <-10 #choose column v3 where column v2
is == 4 and replace with 10
and where is it documented?
The code below works for what I want to do (find the non-missing value in a
row),
2012 Jan 06
1
What is wrong with this plotting?
Hello
I have a data frame, called input, like this:
DateTime CO2_A1cont
1 2011-04-08 11:47:01 NA
2 2011-04-08 12:42:01 8.90000
3 2011-04-08 13:07:01 NA
4 2011-04-08 13:32:01 NA
5 2011-04-08 13:57:01 7.556482
6 2011-04-08 14:22:01 NA
....
57 2011-04-09 16:52:01 4.961558
And like to plot this series with plot() and connected lines, no interruption
2010 Dec 16
2
moving average with gaps in time series
...eq(from = 915156600, to =915163800, by = 150) #resume
time steps of 150 seconds
x <- cbind (Value, DateTime)
x <- as.data.frame(x)
x$DateTime <-as.POSIXct(x$DateTime, origin="1970-01-01", tz="GMT")
x1 <- x[-c(1:23), ] #trimming x to create direct comparison of DateTimes
in x and x1
x[,3] <- difftime(x1[,2], x[,2], units="mins") #ignore warning message
colnames(x) [3] <- "interval"
x[24:nrow(x),3] <- x[1:(nrow(x)-23),3] #set interval to be the number
of minutes between n-23 and n.
#57.5 indicates no gaps in the previ...
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
2006 Apr 05
3
how to insert Current DateTime value into database?
Hi,
I want to insert onto database the Current DateTime Value into database
field "Store_date" with datatype (DATETIME). How to do tihs?
I am usiing hidden variable into my form as follows:-
=======================
<%= hidden_field("store", "store_date", :value =>:datetime ) %>
=======================
But when I m submmittng form I couldn''t find
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? Tried google, and ruby-forum is down and am up against a
deadline...
My api/model method looks like this:
def find_by_id(id)
Foo.find(id)...
2006 Oct 19
3
Selecting datetime values from SQL Server (year < 1970)
All,
Rails 1.1.6.
Any AR find() call that generates a SELECT * type query against a table
with a DATETIME column in SQL Server whose value occurs before 1970 will
fail, because of the coercion of SQL Server datetime types to Time
values in Ruby.
See sqlserver_adapter.rb line 490
(record[col] = record[col].to_time if record[col].is_a? DBI::Timestamp)
If I remove the coercion (just commenting
2007 Aug 12
4
Date and Time validator, updater
Can someone point me to a date/time validator or updater.
I have an event start datetime and an event end datetime. I want
to validate that the end datetime is after the start datetime.
Figure there is some code or library out there already, if you
know one, please forward it.
Thank you!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2012 Jul 17
3
NA instead of time stamp
I was wondering why I get <NA> instead of the timestamp in the following.
Thanks.
> dataDir <- file.path(wd)
> localRaw <- read.csv(file.path(dataDir,"LOCAL.csv"), as.is=T,stringsAsFactors
= FALSE)
> localRaw[1:2,]
Year Month Day hour minute second Temp1mab Temp7mab Temp14mab Salinity1mab
1 2009 10 5 0 0 0 11.288 13.675 13.743 33.513
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:
2006 Jul 17
18
Inserting datetime value into SQL Server
I have a SQL Server column named StartTime of (SQL Server) type datetime
If I attempt to set the attribute using
public
def StartTime=(time)
write_attribute(:StartTime, "{ts ''1899-12-30
#{time.hour}:#{time.min}:#{time.sec}''}")
end
it''s inserting a NULL value.
Anyone else able to successfully insert a date time value into a SQL
Server table using