I had a recent DBA-SE question that involved dates that were used as the x-axis in a graph: Interpolate dates along a line.
It was centred around a
COND_ID ROAD_ID COND_DATE CONDITION ------- ------- -------- --------- 1 100 84-11-01 18 2 100 09-01-01 6 3 100 12-06-19 4 4 100 15-04-29 4 5 200 92-04-29 20 6 200 17-04-05 3
Note: I consider
cond_date to be the X-axis, and
condition to be the Y-axis.
In my failed attempt to answer my own question, I tried to do things like use
X1 in a couple of calculations:
(y2-y1)/(x2-x1) as m_slope
y1 - ((y2-y1)/(x2-x1)) * x1 as y_intercept
However, obviously I can’t just use a date in a calculation that involves multiplication or division; dates are not traditional numbers.
As a work around, I stripped the date of its month and day:
extract(year from cond_date) and performed the calculations from there on the resulting integer (the year). However, by doing this, I of course loose valuable precision in the number. This compromises the output of the calculation.
I suspect that I’ve just been staring at this for too long now. Apologies if this comes of as an astoundingly amateurish question.
How can I multiply and divide dates, without losing precision?
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!