Ciao,

I've started developing the class. 

Here it is in attach the 2 files (.h and .cc) of both the definitions and
the declaration of the class.

Just give a look to them and let me know.

I've placed a switch "local_time" in the class to permit the conversion
from a time_t value into a localtime value or a gm value expressed by a
struct tm.

I also placed 3 methods for showing the date in asctime, RFC1123 and RFC850
that are the ones supported by HTTP/1.1.

For the output, I think there are no problems.

The trouble is the insertion of a value. That's what the strptime function
is gonna do ... I'll give a look to it tomorrow.

I want to understand how mytimegm and Htstrptime work. I think, if you
agree, they could be inserted into the class.

Please give a look at my work.

I'm hopefully waiting for your suggestions ... :-)

Thanks
-Gabriele

HtDateTime.zip



-------------------------------------------------

Gabriele Bartolini
U.O. Rete Civica - Comune di Prato
Prato - Italia - Europa

e-mail: [EMAIL PROTECTED]
http://www.po-net.prato.it

-------------------------------------------------

Reply via email to