www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Interpolate dates

reply Booster <Booster Rooster.com> writes:
I have some dates and date-times. I need to interpolate the 
date-times from the dates.

I guess the easy way to do this would be to convert the date and 
date-times to long usecs and then use that to interpolate?

Does D have anything that can do this easily?

To be clear, I have list of dates and I'm trying to find the 
index where the date-time should go within that index. e.g., 3.4 
would go inbetween the 3rd and 4th date in the list almost half 
way inbetween.
Aug 29 2021
parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Mon, Aug 30, 2021 at 12:06:46AM +0000, Booster via Digitalmars-d-learn wrote:
 I have some dates and date-times. I need to interpolate the date-times
 from the dates.
Try looking at std.datetime perhaps? T -- The diminished 7th chord is the most flexible and fear-instilling chord. Use it often, use it unsparingly, to subdue your listeners into submission!
Aug 30 2021