intervals Questions

4

Solved

I'm familiar with the the date and time classes in the JDK and their associated formatting methods. I may be blind, but I cannot find an equivalent set of classes for processing time intervals. For...
Crocoite asked 18/3, 2009 at 11:1

1

Solved

How can I do this MySQL statement in an IBM Informix? select type, channel, teilnr, starttime, endtime, usedtime, host from online_time where starttime < DATE_SUB(NOW(),INTERVAL 15 MINUTE) or...
Juvenescent asked 13/3, 2017 at 15:23

5

Solved

I have an input set of date ranges that may overlap. Instead of combining these overlapping date ranges, I want to create new date ranges with adjusted dates, e.g.: |---------------------–| |---...
Alexandriaalexandrian asked 9/7, 2013 at 8:6

7

Solved

I have a vector of numeric elements, and a dataframe with two columns that define the start and end points of intervals. Each row in the dataframe is one interval. I want to find out which interval...
Laveen asked 13/12, 2016 at 23:3

4

I am fairly new to JavaScript, and I am learning it through p5 and videos by Daniel Shiffman. I've been looking for a way to update a program every minute or so that checks a weather api, s...
Clyve asked 21/11, 2016 at 0:52

4

Solved

I am wondering if there is a function in Python already written for the goal that I describe later. If not, what would be the easiest way to implement. My code is attached. Say I have a range fro...
Nickey asked 30/8, 2013 at 18:1

1

Solved

See the following code: function printDiff($tz) { $d1 = new DateTime("2015-06-01", new DateTimeZone($tz)); $d2 = new DateTime("2015-07-01", new DateTimeZone($tz)); $diff = $d1->diff($d2); p...
Coachman asked 1/11, 2016 at 5:6

2

Observable.Interval produces value every period of time. How to make it wait until action ends before the next iteration? Example: Observable.Interval(TimeSpan.FromSeconds(1)).Subscribe(async t =...
Knapweed asked 12/10, 2016 at 10:39

1

Solved

I have the following pandas DataFrame: import pandas as pd df = pd.DataFrame('filename.csv') print(df) order start end value 1 1342 1357 category1 1 1459 1489 category7 1 1572 1601 category23 1 ...
Molech asked 30/9, 2016 at 7:54

5

I create J2SE application and this application needs to format two times in milliseconds into a string that represents the interval between this two times. long time1 = 1334331041677L; //Fri Apr 1...
Garfish asked 13/4, 2012 at 15:47

1

Solved

Problem Statement Input set of n intervals; {[s_1,t_1], [s_2,t_2], ... ,[s_n,t_n]}. Output pair of intervals; {[s_i,t_i],[s_j,t_j]}, with the maximum overlap among all the interval pairs. Exampl...
Demars asked 4/9, 2016 at 1:15

2

Solved

I want to add 2 months and 2 years to the current date but for some reason i cannot get it to work. Select DATE_ADD(NOW(), INTERVAL 2 MONTH, INTERVAL 2 YEAR);
Spruce asked 26/10, 2014 at 2:53

1

Solved

I have a function that needs to be called about every 500ms. The way I am looking at doing it with angular2 is using intervals and observables. I have tried this function to create the observable: ...
Dilatant asked 23/6, 2016 at 14:8

3

Solved

I have a data frame with multiple date ranges (45 to be exact): Range Start End 1 2014-01-01 2014-02-30 2 2015-01-10 2015-03-30 3 2016-04-20 2016-10-12 ... ... ... They will never overlap I als...
Indeterminism asked 21/6, 2016 at 0:21

2

Solved

I have a dataframe with the following structure - Start, End and Height. Some properties of the dataframe: A row in the dataframe always starts from where the previous row ended i.e. if the end ...
Matte asked 25/4, 2016 at 8:48

3

Solved

I want to split the calendar into two-week intervals starting at 2008-May-5, or any arbitrary starting point. So I start with several date objects: import datetime as DT raw = ("2010-08-01", "2...
Geek asked 7/8, 2010 at 12:16

3

Solved

Let's say I have this integer vector: > int.vec [1] 1 2 3 5 6 7 10 11 12 13 (created from int.vec <- c(1:3,5:7,10:13)) I'm looking for a function that will return the sum of the lengths ...
Lubberly asked 21/3, 2016 at 4:0

1

Solved

I am using R with package data.table and I would like to group a data.table by running (time) intervals or overlapping bins. For each of these running intervals I would like to find the occurence o...
Wilton asked 1/3, 2016 at 9:28

15

Solved

I'm looking for some nice C code that will accomplish effectively: while (deltaPhase >= M_PI) deltaPhase -= M_TWOPI; while (deltaPhase < -M_PI) deltaPhase += M_TWOPI; What are my options? ...
Naylor asked 8/1, 2011 at 8:54

4

I am a newbie IOS developer, but I have a good amount of experience in Android development. My question is regarding the creating and use of interval specific timers. In android I could easily ma...
Underwear asked 10/8, 2011 at 0:3

1

[1..4] could help to generate [1;2;3;4] But I wish to generate a range like this: [10;8;6;4;2] How to use range semantics to achieve this(interval+descending)? Is a "for" loop mandatory in th...
Caster asked 2/2, 2016 at 7:30

9

Solved

We're creating a scheduling application and we need to represent someone's available schedule during the day, regardless of what time zone they are in. Taking a cue from Joda Time's Interval, which...
Staceystaci asked 21/3, 2011 at 23:24

4

I have a table in oracle which contains data such as the following created_date details 01-Jan-16 04:45 abcd 01-Jan-16 04:47 efgh 01-Jan-16 04:53 ijkl 01-Jan-16 04:54 mnop 01-Jan-16 04:58 qr...
Kwok asked 11/1, 2016 at 13:47

1

Solved

I want to add the QUARTER to the TIMESTAMP in PostgreSQL 9.3 version. My Try: For adding: SELECT TIMESTAMP '2016-01-01' + INTERVAL '01 QUARTER'; For remove: SELECT TIMESTAMP '2016-01-01' - INTERVA...
Suziesuzuki asked 1/1, 2016 at 6:4

2

Solved

I am by no means an MySQL expert, so I am looking for any help on this matter. I need to perform a simple test (in principle), I have this (simplified) table: tableid | userid | car | From | To -...
Tucket asked 15/12, 2015 at 21:27

© 2022 - 2024 — McMap. All rights reserved.