Top "Date-arithmetic" questions

The term 'date-arithmetic' refers to determining via code such information as how many days, hours, etc.

Add DATE and TIME fields to get DATETIME field in MySQL

I am trying to get a DATETIME field from a DATE and a TIME field. none of the functions in …

mysql sql datetime date-arithmetic
Difference in time between records

I have a table that has (among others) a timestamp column (named timestamp; it's a standard Oracle DATE datatype). The …

sql oracle date-arithmetic
What is the recommended way of doing date arithmetics in Perl?

What is the recommended way of doing date arithmetics in Perl? Say for example that I want to know the …

perl datetime cpan datediff date-arithmetic
How to get the end of a day?

I'm using PostgreSQL 8.4. I have a column of the table my_tbl which contains dates (timestamp without timezone). For instance: …

sql postgresql date-arithmetic
Simple Java Date Calculations

I would like to do simple date calculations in Java. For example, compute the difference in days between to dates (…

java date-arithmetic
Calculating difference in dates in Java

I find it funny that Java (or the java.util library) does not have a built-in function to calculate difference …

java date datetime date-arithmetic
Convert seconds to days, hours, minutes, seconds (MySQL)

Example: seconds ="1015557"; Result should be: 11days 18h:05m:57s How can do this in MySQL?

mysql date-arithmetic date-conversion
ORACLE SQL Date range intersections

I have a table T1, it contains a NAME value (not unique), and a date range (D1 and D2 which …

sql oracle plsql date-range date-arithmetic
Group dates by week in R

I wish to label my data based on their week. This is my data: df2 <- structure(list(Order_…

r date-arithmetic week-number
MySQL: Average interval between records

Assume this table: id date ---------------- 1 2010-12-12 2 2010-12-13 3 2010-12-18 4 2010-12-22 5 2010-12-23 How do I find …

mysql datetime date-arithmetic