Questions tagged [difference]

This tag may refer to 1) the difference between two numbers (i.e. the difference between 5 and 10 is 5) or 2) the things that two or more particular objects do not share in common.

Use this tag for questions that deal with either of the following two topics:

  1. The difference between two numbers.
  2. What two or more particular objects do not share in common.

Related tags:

1970 questions
0
votes
0 answers

PHP calculate difference in time

I've the following code for calculation the difference in time $estimated_time = '40:30'; $completed_time = '20:45'; // list the times list($hours1, $minutes1) = explode(':', $estimated_time); list($hours2, $minutes2) = explode(':',…
Bham
  • 309
  • 5
  • 21
0
votes
1 answer

.isEqualTo vs .equals in java

I have to write an unit test in java, and was wondering what is the difference between .isEqualTo and .equals. Here is an example of my…
Hendrien
  • 325
  • 1
  • 10
  • 20
0
votes
1 answer

Unix Get only Difference between 2 files

Hello i am trying to compare the files inside 2 directories and output all the new lines, but i am getting the new lines. My question is how to output each file difference to a separates file not all on the same output. Thank you Here is the…
Johnny
  • 53
  • 1
  • 9
0
votes
1 answer

Difference between 2 dates in months and days in Java 7

I want to calculate the difference between 2 dates in months and days, I don't want to consider a month is 30 days and get the time in milliseconds and convert them, and I don't want to use a library such as Joda, and I also found a solution that…
hakuna matata
  • 3,243
  • 13
  • 56
  • 93
0
votes
2 answers

SQL Date Diff between Upload time 1 and 2

I'm new to SQL and was wondering if you could help me create a query that compares the time difference in Days, Hours, Minutes. For example, Start time 1 = 13/01/2016, 16:00 End time 1 = 14/01/2016, 18:00 So the time difference should be 1 day and…
L.gam
  • 1
0
votes
1 answer

days gap between 2 dates

i am facing problem when i'm getting difference between 2 dates. For example, '9/11/2016' minus '7/11/2016' the result comes out 62. Why? Anyone can help me please? Any response is appreciated, Thanks in advance. :) Protected Sub…
Zhen Chua
  • 5
  • 4
0
votes
1 answer

Difference in outputs while printing value stored in a variable and printing value directly using printf()

I am trying to write a simple C program that takes the input from user in metres and prints the output in kilometres, yards and miles rounded to 4 decimal places. I have used this 1 meter = 0.001 kilometers = 1.094 yards = 0.0006215 miles When I…
0
votes
1 answer

Bash: find all pair of lines such that the difference of their first field is less than a threshold

my problem is the following. I have a BIG file with many rows containing ordered numbers (repetitions are possible) 1 1.5 3 3.5 6 6 ... 1504054 1504056 I would like to print all the pair of row numbers such that their difference is smaller than a…
user2382948
  • 21
  • 1
  • 3
0
votes
2 answers

Same test on two identical SQL Servers results in different amount of IO volume

Overview I have two servers with the same hardware specs and should be configured identically. They are running Windows Server 2012 R2 with 8 cores and 128 GB RAM each. On each server I am running a Hyper-V instance of SQL Server 2014. These servers…
0
votes
1 answer

Calculate the percentage change between two rows into a view in Postgres

I have a table with yearly values for 200+ countries. For a graphical representation, I'd like to get the percentage change between two specific years, 1990 and 2013. The table looks a bit like this: id_country year value 886 …
luftikus143
  • 1,285
  • 3
  • 27
  • 52
0
votes
1 answer

Dictionary Difference between C# and VB.Net

Why if I have a Dictionary myDic in C# I can't do myDic.Values[1] because it can't index a Dictionary instead of Vb.Net that allow me to do myDic.Values(1) ? Is there any difference between C# Dictionary and a VB.Net one?
CRK
  • 337
  • 2
  • 10
0
votes
0 answers

prediction on rowwise data or progressive data

I am working on employee attrition analysis with a table having rowwise data for a (employee like Id, name, Date_Join Date_Relieving Dept Role etc) eID eName Joining Releiving Dept Married Experience 123 John Doe 10Oct15 12Oct16 HR No…
Makarand
  • 11
  • 6
0
votes
1 answer

difference between two pair of date in php

I was trying to get the difference between two date. Unfortunately I only get whole number and not the formatted as required. I have tried several ways but no luck. I need to deduct $HoldInterval from $TactInterval but the system get an error. Below…
Roggie
  • 23
  • 1
  • 7
0
votes
1 answer

Extract years/months/days from time difference

I need to calculate personnel's working age from PerBeginDate to PerEndDate fields. The format must be in y/m/d, such as 1/5/10 (1 year 5 months 10 days) or 0/0/30 (30 days).
Red Romanov
  • 454
  • 5
  • 11
0
votes
0 answers

difference in data of mysql same tables of different databases

I want to find out the differences of two same structured tables but in different databases,One is master table & i want to sync all other similar tables in different databases with it. For example t1 table in db1 and t2 table in db2, want to find…
sefburhan
  • 63
  • 1
  • 9