
Wu Yinghui, Freddie wrote:
Hi all,
I'm just starting to try out Boost.Date_time library. As a newbie, I want to know if there is any good tutorial or "get started" guide somewhere that I can refer to.
I've checked out the Data_time library documentation, as well as done some search on Google. Yet I cannot find useful information for an absolute beginner.
Simple operation such as "Get the current time in the current time zone,
http://www.boost.org/doc/html/date_time/posix_time.html#ptime_from_clock
and print it out using ISO format" is not achievable from reading the documentation--
http://www.boost.org/doc/html/date_time/posix_time.html#ptime_to_string
It is helpful to an experienced user, but not at all to a newbie.
So any hints on how I should get started with Boost.Date_time library?
Read the docs and examples a little deeper.
Cheers,
Freddie
P.S. I found one very annoying fact that most examples in Boost documentation do not indicate the namespace and/or header file to use for all those classes and types. This makes it very difficult for a beginner to get started in general. Any comments on this?
All of the following examples clearly show the header and namespace: http://www.boost.org/doc/html/date_time/examples/general_usage_examples.html http://www.boost.org/doc/html/date_time/examples.html Overall I've never had a problem with this in Boost docs. Jeff