timestamp arithmetics in C function

2018-08-10 Thread Lutz Gehlen
Hello all, I am trying to implement a C function that accepts a date ("date" in the sense of a type of information, not a postgres datatype) as parameter (among others) and returns a certain point in time. (The background is to calculate the time of dawn and dusk at the given date.) Ideally, I

Re: timestamp arithmetics in C function

2018-09-03 Thread Lutz Gehlen
, Lutz On Friday, 10.08.2018 09:05:40 Lutz Gehlen wrote: > Hello all, > > I am trying to implement a C function that accepts a date ("date" > in the sense of a type of information, not a postgres datatype) > as parameter (among others) and returns a certain point in time

Re: timestamp arithmetics in C function

2018-09-11 Thread Lutz Gehlen
Hi Adrian, thanks for the encouragement. If anyone can comment on the code, I'd still be very interested. Cheers, Lutz On Thursday, 06.09.2018 06:27:14 Adrian Klaver wrote: > On 09/03/2018 09:11 AM, Lutz Gehlen wrote: > > Hello all, > > > > unfortunately, I have s