Login  Register

Re: Intra-day date representation ?

Posted by Luigi Ballabio on Aug 07, 2014; 1:05pm
URL: http://quantlib.414.s1.nabble.com/Intra-day-date-representation-tp15688p15707.html

On Thu, Aug 7, 2014 at 2:52 PM, Dirk Eddelbuettel <[hidden email]> wrote:
> | So: let's start the discussion. I'd love to hear from people with some
> | ideas about the above...
>
> Why don't start by generalizing Date :) (Only half-kidding, maybe incremental
> approaches are fine rather than grand rewrite that then may stall ...)


That one should be doable.
Possibility 1: we add a time part to our date and keep track of it in
day counters.
Possibility 2: we change the internals of our date so that it contains
a Boost date, we check that it works as before, then we also expose
the time part (and keep track of it in day counters). At a later date
(ha ha) we gut our date and keep Boost. Question: is Boost.Date
header-only or do we need to link a library?

Luigi




--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev