Boost logo

Boost :

From: SourceForge.net (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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1471025&group_id=7586

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;

FILETIME ft;
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%") % pt.date().year();
}

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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1471025&group_id=7586

-------------------------------------------------------
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!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk