search for: starttim

Displaying 20 results from an estimated 173 matches for "starttim".

Did you mean: starttime
2005 May 31
2
POSIX problem
...ust paste the date and time parts together and try and create the POSIXct object, I have problems. Here is a toy example created from the actual data which caused the problem. I am using R 2.0.1 on Windows XP. > # Data frame with dates and times, as character > PeopleData.df StartDate StartTime 1 29/10/2001 15:26 2 7/12/2001 10:32 3 16/11/2001 13:58 4 28/11/2001 14:00 5 2/11/2001 15:22 6 26/11/2001 11:15 > str(PeopleData.df) `data.frame': 6 obs. of 2 variables: $ StartDate: chr "29/10/2001" "7/12/2001" "16/11/2001" &quo...
2003 Sep 02
1
convert character to POSIXct
...ist-members, I would like to calculate the difference between two points in time. To convert a 'time (GMT)'-character with the format "1/1/1999 01:01:01" into an object of class "POSIXct"', I first use the strptime() as suggested in the details help(as.POSIXct). e.g. starttime<-strptime("1/1/1999 01:01:01",format="%d/%m/%Y %H:%M:%S") endtime<-strptime("1/8/1999 01:01:01",format="%d/%m/%Y %H:%M:%S") > starttime [1] "1999-01-01 01:01:01" > endtime [1] "1999-08-01 01:01:01" If I substract these from e...
2024 Apr 08
4
Exceptional slowness with read.csv
...csv file of 76 fields and about 4 million records. I know that some of the records have errors - unmatched quotes, specifically.? Reading the file with readLines and parsing the lines with read.csv(text = ...) is really slow. I know that the first 2459465 records are good. So I try this: > startTime <- Sys.time() > first_records <- read.csv(file_name, nrows = 2459465) > endTime <- Sys.time() > cat("elapsed time = ", endTime - startTime, "\n") elapsed time = ? 24.12598 > startTime <- Sys.time() > second_records <- read.csv(file_name, ski...
2014 Mar 19
2
[LLVMdev] getElapsedWallTime unnecessary heap allocation and memory leak
...ren > Subject: [LLVMdev] getElapsedWallTime unnecessary heap allocation and memory leak > In the file \lib\Support\Process.cpp on line 60, it seems as though an > unnecessary heap allocation and memory leak occurs. > static TimeValue getElapsedWallTime() { >  static TimeValue &StartTime = *new TimeValue(TimeValue::now()); >  return TimeValue::now() - StartTime; > } > The issue is that the StartTime variable's value is allocated on the heap, > after which a *reference* to it is stored (not the pointer itself). This > means that the allocated memory is actuall...
2005 Dec 23
6
Selecting time
I''m currently building a small app that''s going to be used to keep track of the amount of time spend on customers of the company I work for. This mainly consists of object with a begin time, an end time and a calculation of the difference between those timestamps (actual time spend on the job). I made a small form with a datetime_select helper for the begin and end time (the
2009 Jun 10
1
by and by: using two indices in by() or tapply()
Hi everyone I want to apply a function by two indices. I have a number of surveyors submitting questionnaires. I want to check the time of the first submission for the day for each surveyor and also see a NA is no submission was done on a particular day. This generates a sample of the data: starttime=c("11:07:32","14:07:28","11:32:21","13:27:49","11:45:05", "12:30:06","10:27:07","10:18:07","15:29:36","16:29:23","13:46:45","10:45:26" ,"09:21:14","10:29:51",...
2024 Apr 08
2
Exceptional slowness with read.csv
...d about 4 million records. I know that > some of the records have errors - unmatched quotes, specifically. > Reading the file with readLines and parsing the lines with read.csv(text > = ...) is really slow. I know that the first 2459465 records are good. > So I try this: > > > startTime <- Sys.time() > > first_records <- read.csv(file_name, nrows = 2459465) > > endTime <- Sys.time() > > cat("elapsed time = ", endTime - startTime, "\n") > > elapsed time = 24.12598 > > > startTime <- Sys.time() > > second...
2014 Mar 19
3
[LLVMdev] getElapsedWallTime unnecessary heap allocation and memory leak
In the file \lib\Support\Process.cpp on line 60, it seems as though an unnecessary heap allocation and memory leak occurs. This is the offending code: static TimeValue getElapsedWallTime() { static TimeValue &StartTime = *new TimeValue(TimeValue::now()); return TimeValue::now() - StartTime; } The issue is that the StartTime variable's value is allocated on the heap, after which a *reference* to it is stored (not the pointer itself). This means that the allocated memory is actually never properly de-alloca...
2024 Apr 08
1
Exceptional slowness with read.csv
...d about 4 million records. I know that > some of the records have errors - unmatched quotes, specifically. > Reading the file with readLines and parsing the lines with read.csv(text > = ...) is really slow. I know that the first 2459465 records are good. > So I try this: > > > startTime <- Sys.time() > > first_records <- read.csv(file_name, nrows = 2459465) > > endTime <- Sys.time() > > cat("elapsed time = ", endTime - startTime, "\n") > > elapsed time = 24.12598 > > > startTime <- Sys.time() > > second...
2014 Mar 19
2
[LLVMdev] getElapsedWallTime unnecessary heap allocation and memory leak
...dWallTime unnecessary heap allocation and > > memory leak > > > In the file \lib\Support\Process.cpp on line 60, it seems as though an > > unnecessary heap allocation and memory leak occurs. > > > static TimeValue getElapsedWallTime() { > > static TimeValue &StartTime = *new TimeValue(TimeValue::now()); > > return TimeValue::now() - StartTime; > > } > > > The issue is that the StartTime variable's value is allocated on the > > heap, after which a *reference* to it is stored (not the pointer > > itself). This means that the...
2006 Apr 11
1
acts_as ... hourly_list?
...using acts_as_list). Later I use a method in Channel to recalculate the hour when that show come online, based on the duration of it and doing math based on the previous one duration and start time, starting from 0:00. So, with this info (channel_items): id | channel_id | event_id | position | starttime 1 | 1 | 3 | 1 | 2 | 1 | 5 | 2 | 3 | 1 | 2 | 3 | 4 | 1 | 1 | 4 | [...] After processing it with recalculate_hours get this (all starting 00:00): id | channel_id | event_id | position | starttime 1 |...
2024 Apr 10
2
Exceptional slowness with read.csv
...ut 4 million records. I know that > some of the records have errors - unmatched quotes, specifically. > Reading the file with readLines and parsing the lines with read.csv(text > = ...) is really slow. I know that the first 2459465 records are good. > So I try this: > > > startTime <- Sys.time() > > first_records <- read.csv(file_name, nrows = 2459465) > > endTime <- Sys.time() > > cat("elapsed time = ", endTime - startTime, "\n") > > elapsed time = ? 24.12598 > > > startTime <- Sys.time() > > seco...
2024 Apr 08
1
Exceptional slowness with read.csv
...now that > > some of the records have errors - unmatched quotes, specifically. > > Reading the file with readLines and parsing the lines with read.csv(text > > = ...) is really slow. I know that the first 2459465 records are good. > > So I try this: > > > > > startTime <- Sys.time() > > > first_records <- read.csv(file_name, nrows = 2459465) > > > endTime <- Sys.time() > > > cat("elapsed time = ", endTime - startTime, "\n") > > > > elapsed time = 24.12598 > > > > > startTime...
2006 Jul 18
1
Auto-populating time portion of a datetime field from a form
I see that if I use the date_select helper in my view, then in the generated page, my selects are named obj[datetime_field(1i)] (and 2i and 3i for the other parts). These auto-populate the date portion of my datetime_field. I have another datetime field that I''m presenting the time from and I would like to use a similar scheme to autopopulate it. Currently, I''ve used the
2011 Dec 10
1
ActiveRecord time and datetime
Hi, Suppose I have a model class which has a time field: class CreateAppointments < ActiveRecord::Migration def change create_table :appointments do |t| t.string :name t.datetime :startTime t.datetime :endTime t.string :description t.timestamps end end end When I test drive it in rails console, I can input any value int he startTime and endTime such as: a = Appointment.new() a.startTime = 1234 a.endTime = 5678 a.save() My question is does Rails support som...
2011 Sep 16
1
Mystified - comparing chron times
I have two local variables: startTime and expectedStartTime. Both are chron related objects. When I look at the class for the objects I can see they are of class "times". When I print them to the console, they both read: "09:30:00" When I print them as.numeric(), they both read: 0.3958333 When I try and compare th...
2015 Mar 29
1
range query for terms
Thank you, Olly! I tried to figure out a picture about how index/query related to the B-tree block access on disk. I think I'm all messed up and failed. now I am trying to index docs in json format, and came to a question about prefix mapping: a json doc like: {"starttime":1111,"endtime":2222} considerring mapping prefix to slot number in two ways: 1.starttime-->0,endtime--->1 2.startime--->hash(starttime), endtime--->hash(endtime), while hash(key) is a random int, which may be very sparse but unique, for example, using BKDR hash. after...
2024 Apr 08
2
Exceptional slowness with read.csv
...> some of the records have errors - unmatched quotes, specifically. > Reading the file with readLines and parsing the lines with > read.csv(text > = ...) is really slow. I know that the first 2459465 records are > good. > So I try this: > > ?> startTime <- Sys.time() > ?> first_records <- read.csv(file_name, nrows = 2459465) > ?> endTime <- Sys.time() > ?> cat("elapsed time = ", endTime - startTime, "\n") > > elapsed time = ? 24.12598 > > ?> startTime <- Sys.time...
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 successfu...
2006 Mar 15
5
Surv object in data.frame
...regression on the data frame it does not work. Seemingly it has to do with the class attribute, because if I change the class attribute to let "Surv" appeare first, again it works. Is this known? Should I have found information on it? Any comments? Thanks Heinz T?chler ## example data starttime <- rep(0,5) stoptime <- 1:5 event <- c(1,0,1,1,1) group <- c(1,1,1,2,2) ## Surv object survobj <- Surv(starttime, stoptime, event) ## Cox-regression coxph(survobj~group) # this works ## put Surv object in data.frame df.test <- data.frame(survobj=I(survobj), group) ## C...