Minor bug in date output

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Minor bug in date output

Robert Lopez
I recently installed QuantLib-0.8.1 and think I've run into a minor
bug in the ostream operator << for short dates. The output adds an
extra "/" between the day and year fields. From date.cpp, lines
407-409:

>                out << std::setw(2) << std::setfill('0') << mm << "/";
>                out << std::setw(2) << std::setfill('0') << dd << "/";
>                out << "/" << yyyy;

I think that this code should read

>                out << std::setw(2) << std::setfill('0') << mm << "/";
>                out << std::setw(2) << std::setfill('0') << dd << "/";
>                out << yyyy;

Hope this is helpful.

--

 - Rob

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Minor bug in date output

Ferdinando M. Ametrano-3
On 9/3/07, Robert Lopez <[hidden email]> wrote:
> I recently installed QuantLib-0.8.1 and think I've run into a minor
> bug in the ostream operator << for short dates. The output adds an
> extra "/" between the day and year fields. From date.cpp, lines
> 407-409:

Thank you Robert, it has been fixed in the repository

ciao -- Nando

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev