toast date time library


Detailed Description

This is a module to hold any extensions we make to the boost date time library. We've only added one function so far...


Files

file  ptime.hpp
 Contains all toast extensions to boost date_time library (there's only one :).

Functions

boost::posix_time::ptime toast::posix_time::local_ptime_from_time_t (std::time_t t)
 convert a time_t to ptime in the local time zone.


Function Documentation

boost::posix_time::ptime toast::posix_time::local_ptime_from_time_t ( std::time_t  t  ) 

convert a time_t to ptime in the local time zone.

Like boost::posix_time::from_time_t, but the resulting ptime is adjusted to local time instead of UTC.


SourceForge.net Logo