Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2006-04-15 17:15:33

Bugs item #1471025, was opened at 2006-04-15 14:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: date_time
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Jeff Garland (az_sw_dude)
Summary: from_ftime incorrectly processes FILETIME filled with zeros

Initial Comment:
using namespace boost::posix_time;
using namespace boost::gregorian;

ZeroMemory( &ft, sizeof( ft ) );

ptime pt = from_ftime<ptime>( ft );

if ( pt.is_special() ) {
   // Never fall into this branch!
   std::cout << "ERROR";
} else {
   // Exception: boost::gregorian::bad_year
   std::cout << boost::format("%1%") %;

I suppose that when FILETIME is filled with zeroes,
from_ftime() should return not_a_date_time. But it does
not do this.


You can respond by visiting:

This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at