Boost logo

Boost :

Subject: Re: [boost] Cross-platform date/time problems
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2009-11-02 13:44:42


On Mon, Nov 2, 2009 at 12:38 PM, Andrey Semashev
<andrey.semashev_at_[hidden]>wrote:

> Zachary Turner wrote:
>
> Anyway, I don't think that bringing Windows-specific code to other
>>> platforms is a good idea. If you want cross-platform code, use
>>> cross-platform types, such as time_t, ptime or local_time.
>>>
>>>
>>> That's just it, I'm trying to use ptime.
>>
>
> Then why not simply send ptime over the network?

Using what method? by sending the result of ptime::ticks()? If so, how do
I reconstruct a ptime from the result of this? Also, the server that this
information is being sent to is written in Java, and it needs to be able to
understand whatever is sent across (i.e. extract day/month/year/etc
information)


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