Logo Search packages:      
Sourcecode: passenger version File versions  Download package

boost::posix_time Namespace Reference


Detailed Description

Defines a non-adjusted time system with nano-second resolution and stable calculation properties.


Classes

class  hours
 Allows expression of durations as an hour count. More...
class  millisec_posix_time_system_config
class  minutes
 Allows expression of durations as a minute count. More...
class  ptime
 Time type with no timezone or other adjustments. More...
class  seconds
 Allows expression of durations as a seconds count. More...
class  time_duration
 Base time duration type. More...

Typedefs

typedef
date_time::counted_time_rep
< millisec_posix_time_system_config > 
int64_time_rep
typedef
date_time::subsecond_duration
< time_duration, 1000000 > 
microsec
 Allows expression of durations as micro seconds.
typedef
date_time::subsecond_duration
< time_duration, 1000000 > 
microseconds
typedef
date_time::subsecond_duration
< time_duration, 1000 > 
millisec
 Allows expression of durations as milli seconds.
typedef
date_time::subsecond_duration
< time_duration, 1000 > 
milliseconds
typedef
date_time::null_dst_rules
< ptime::date_type,
time_duration
no_dst
 Define a dst null dst rule for the posix_time system.
typedef
date_time::counted_time_system
< int64_time_rep
posix_time_system
typedef
date_time::second_clock< ptime
second_clock
 A time clock that has a resolution of one second.
typedef
boost::date_time::time_facet
< ptime, char > 
time_facet
typedef
boost::date_time::time_input_facet
< ptime, char > 
time_input_facet
typedef date_time::time_itr
< ptime
time_iterator
 Iterator over a defined time duration.
typedef date_time::period
< ptime, time_duration
time_period
 Time period type.
typedef
date_time::time_resolution_traits
< boost::date_time::time_resolution_traits_adapted64_impl,
boost::date_time::micro, 1000000, 6 > 
time_res_traits
typedef
date_time::us_dst_rules
< ptime::date_type,
time_duration
us_dst
 Define US dst rule calculator for the posix_time system.
typedef
boost::date_time::time_facet
< ptime, wchar_t > 
wtime_facet
 wptime_facet is depricated and will be phased out. use wtime_facet instead
typedef
boost::date_time::time_input_facet
< ptime, wchar_t > 
wtime_input_facet

Functions

time_duration duration_from_string (const std::string &s)
 Creates a time_duration object from a delimited string.
ptime from_iso_string (const std::string &s)
ptime from_time_t (std::time_t t)
 Function that converts a time_t into a ptime.
ptime operator+ (const ptime &t, const boost::gregorian::years &y)
ptime operator+ (const ptime &t, const boost::gregorian::months &m)
ptime operator+= (ptime &t, const boost::gregorian::years &y)
ptime operator+= (ptime &t, const boost::gregorian::months &m)
ptime operator- (const ptime &t, const boost::gregorian::years &y)
ptime operator- (const ptime &t, const boost::gregorian::months &m)
ptime operator-= (ptime &t, const boost::gregorian::years &y)
ptime operator-= (ptime &t, const boost::gregorian::months &m)
template<class CharT, class Traits>
std::basic_ostream< CharT,
Traits > & 
operator<< (std::basic_ostream< CharT, Traits > &os, const time_duration &td)
 ostream operator for posix_time::time_duration
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::posix_time::time_period &p)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const ptime &p)
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, time_duration &td)
 input operator for time_duration
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, time_period &tp)
 input operator for time_period
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, ptime &pt)
 input operator for ptime
ptime ptime_from_tm (const std::tm &timetm)
 Convert a tm struct to a ptime ignoring is_dst flag.
ptime time_from_string (const std::string &s)
std::string to_iso_extended_string (ptime t)
 Convert to form YYYY-MM-DDTHH:MM:SS where T is the date-time separator.
template<class charT>
std::basic_string< charT > to_iso_extended_string_type (ptime t)
std::wstring to_iso_extended_wstring (ptime t)
 Convert to form YYYY-MM-DDTHH:MM:SS where T is the date-time separator.
std::string to_iso_string (ptime t)
 Convert iso short form YYYYMMDDTHHMMSS where T is the date-time separator.
std::string to_iso_string (time_duration td)
 Time duration in iso format -hhmmss,fffffff Example: 10:09:03,0123456.
template<class charT>
std::basic_string< charT > to_iso_string_type (ptime t)
template<class charT>
std::basic_string< charT > to_iso_string_type (time_duration td)
std::wstring to_iso_wstring (ptime t)
 Convert iso short form YYYYMMDDTHHMMSS where T is the date-time separator.
std::wstring to_iso_wstring (time_duration td)
 Time duration in iso format -hhmmss,fffffff Example: 10:09:03,0123456.
std::string to_simple_string (time_period tp)
 Convert to string of form [YYYY-mmm-DD HH:MM::SS.ffffff/YYYY-mmm-DD HH:MM::SS.fffffff].
std::string to_simple_string (ptime t)
std::string to_simple_string (time_duration td)
 Time duration to string -hhmm::ss.fffffff. Example: 10:09:03.0123456.
template<class charT>
std::basic_string< charT > to_simple_string_type (time_period tp)
template<class charT>
std::basic_string< charT > to_simple_string_type (ptime t)
 Time to simple format CCYY-mmm-dd hh:mm:ss.fffffff.
template<class charT>
std::basic_string< charT > to_simple_string_type (time_duration td)
std::wstring to_simple_wstring (time_period tp)
 Convert to wstring of form [YYYY-mmm-DD HH:MM::SS.ffffff/YYYY-mmm-DD HH:MM::SS.fffffff].
std::wstring to_simple_wstring (ptime t)
std::wstring to_simple_wstring (time_duration td)
 Time duration to wstring -hhmm::ss.fffffff. Example: 10:09:03.0123456.
std::tm to_tm (const boost::posix_time::time_duration &td)
 Convert a time_duration to a tm structure truncating any fractional seconds and zeroing fields for date components.
std::tm to_tm (const boost::posix_time::ptime &t)
 Convert a time to a tm structure truncating any fractional seconds.


Generated by  Doxygen 1.6.0   Back to index