search for: datetim

Displaying 20 results from an estimated 1084 matches for "datetim".

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
...m <- 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", grep("^_00060_00003", colnames(DVdatatmp)))]) retval <- as.data.frame(DVdatatmper, colClasses = c("character"), fill = TRUE, comment.char = "#", stringsAsFactors = FALSE) if (ncol(retval) == 2) { names(retval) <- c("dateTime", "value")...
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 variables will be removed in a future release. However, neither the function or application...
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...
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' datetime.c:307: `ans' undeclared (first use in this function) datetime.c:307: (Each undeclared identifier is reported only once datetime.c:307: for each function it appears in.) make[3]: ***...
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 << @...
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 should b...
2012 Jul 14
3
Can't understand syntax
...] [!(is.na(test[["v3"]]))] <- test [["v3"]] [!(is.na (test[["v3"]]))] thanks! On Fri, Jul 13, 2012 at 6:41 AM, Rui Barradas <ruipbarradas@sapo.pt> wrote: > Hello, > > Check the structure of what you have, df and newdf. You will see that in > df dateTime is of class POSIXlt and in newDf newDateTime is of class > POSIXct. > > Solution: > > [...] > df$dateTime <- strptime(df$dateTime,"%m/%d/%Y %H:%M") > df$dateTime <- as.POSIXct(df$dateTime) > [...] > > Hope this helps, > > Rui Barradas > > E...
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 conn...
2010 Dec 16
2
moving average with gaps in time series
...hat moving average at n = mean(n-23 : n) The time series has about 1.5 million rows, with occasional gaps due to poor data quality. I only want to take a 1 hour moving average for those periods that are complete, i.e. have 24 observations in the previous hour. The data is in 3 columns Value DateTime interval For example: Value <- rnorm (100, 50, 3) #my data has 1.5 million rows; using 100 here for simple example DateTime <- seq(from = 915148800, to=915156150, by =150) #time steps 1:50 at 150 second intervals DateTime [51] <- 915156450 #skip one time step; DateTime[52:10...
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 never seen the "Z" appended like that before. I''m running mysql 4.1.18-...
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...
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-f...
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 out th...
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...
2012 Jul 17
3
NA instead of time stamp
...0 11.288 13.675 13.743 33.513 2 2009 10 5 0 15 0 11.258 13.684 13.716 33.514 O21mab waveht wavedir waveperiod depth mab along across 1 0 54.926 1.600 340 9.09 . NA NA 2 0 55.574 1.525 340 9.09 . NA NA > DateTime<-with(localRaw,paste(Year,Month,Day,hour,minute)) > DateTime<-as.POSIXct(DateTime, format="%m/%d/%Y %H:%M") > localCond_2009<-xts(localRaw ,order.by=DateTime) > localCond_2009[1:2,] Year Month Day hour minute second Temp1mab Temp7mab Temp14mab <NA> "2...
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 th...
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 i...