> Olaf Radicke <[email protected]> hat am 9. August 2013 um 20:49
> geschrieben:
>
>
>
>
> > Tommi Mäkitalo <[email protected]> hat am 9. August 2013 um 20:28
> > geschrieben:
> [...]
> > Try to create a tntdb::Datetime(2013, 5, 32, 0, 0, 0). It will work.
> > While cxxtools::DateTime(2013, 5, 32, 0, 0, 0) will throw an exception.
> > That is also documented in the tntdb documentation
> > (http://www.tntnet.org/howto/tntdb.html).
>
> Okay, and how can i cast from tntdb::Datetime to cxxtools::DateTime and back?

It's that the way it is?

[...]
        tntdb::Datetime dbdt = row[3].getDatetime() ;
        cxxtools::DateTime cxxdt(
            dbdt.getYear(),
            dbdt.getMonth(),
            dbdt.getDay(),
            dbdt.getHour(),
            dbdt.getMinute(),
            dbdt.getSecond()
        );
        feed.setCreateTime( cxxdt );
[...]

Olaf

-------------------|-------------------|-------------------|-------------------|

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to