From: stephan b. <st...@s1...> - 2004-12-28 17:31:09
|
See src/s11n/proxy/Time_s11n.h. #include <pclasses/s11n/proxy/Time_s11n.h> ... using namespace P::SIO; using P::Time; using P::Date; using P::DateTime; Time thetime( 12, 13, 14 ); Date thedate( 2005, 1, 30 ); DateTime dt( thedate, thetime ); save( thetime, std::cout ); save( thedate, std::cout ); save( dt, std::cout ); <!DOCTYPE s11n::io::expat_serializer> <S11nNode class="P::Time"> <hour>12</hour> <min>13</min> <sec>14</sec> <usec>0</usec> </S11nNode> <!DOCTYPE s11n::io::expat_serializer> <S11nNode class="P::Date"> <day>30</day> <month>1</month> <year>2005</year> </S11nNode> <!DOCTYPE s11n::io::expat_serializer> <S11nNode class="P::DateTime"> <time class="P::Time"> <hour>12</hour> <min>13</min> <sec>14</sec> <usec>0</usec> </time> <date class="P::Date"> <day>30</day> <month>1</month> <year>2005</year> </date> </S11nNode> -- ----- st...@s1... http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |