RE: [boost] Comments on date/time library

2003-01-22 Thread Jeff Garland
But seriously I'm willing to add it, but I don't think I've heard a compelling use case yet... I wrote a date formatting function. This function can take a datetime, date, or time duration, and format it to text. The core however, is implemented using datetime_t. The function

RE: [boost] Comments on date/time library

2003-01-22 Thread Yitzhak Sapir
-Original Message- From: Jeff Garland [mailto:[EMAIL PROTECTED]] However, to implement format General Date (format letter c), I need to know if the given input contains a date, a time, or a datetime. Since the functions pretty much perform the same thing, I have a core that

RE: [boost] Comments on date/time library

2003-01-22 Thread Jeff Garland
Seems like there will be cases where you will want to print the 'not_a_date' value instead of throwing an exception. Without a bit more detail, however, it is unclear to me how this bears on a default constructor. You can already test a date to find out if it is not_a_date_time?

RE: [boost] Comments on date/time library

2003-01-17 Thread Jeff Garland
Default Construction It would be useful if default constructors for gregorian::date and posix_time::ptime were provided. The default constructors could maybe work as follows: gregorian::date() == gregorian::date(not_a_date_time) posix_time::ptime() ==

Re: [boost] Comments on date/time library

2003-01-17 Thread Steven Kirk
Default Construction It would be useful if default constructors for gregorian::date and posix_time::ptime were provided. The default constructors could maybe work as follows: gregorian::date() == gregorian::date(not_a_date_time) posix_time::ptime() ==