Posix Time Reference
ptimestd::time_tFunction that converts a time_t into a ptime. std::time_tptimeFunction that converts a ptime into a time_t. std::tmconst boost::posix_time::ptime &Convert a time to a tm structure truncating any fractional seconds. std::tmconst boost::posix_time::time_duration &Convert a time_duration to a tm structure truncating any fractional seconds and zeroing fields for date components. ptimeconst std::tm &Convert a tm struct to a ptime ignoring is_dst flag. TimeTconst FileTimeT &Function to create a time object from an initialized FILETIME struct. Function to create a time object from an initialized FILETIME struct. A FILETIME struct holds 100-nanosecond units (0.0000001). When built with microsecond resolution the FILETIME's sub second value will be truncated. Nanosecond resolution has no truncation.FILETIME is part of the Win32 API, so it is not portable to non-windows platforms. The function is templated on the FILETIME type, so that it can be used with both native FILETIME and the ad-hoc boost::detail::winapi::FILETIME_ type.
Operators for ptime and optional gregorian types. Operators use snap-to-end-of-month behavior. Further details on this behavior can be found in reference for date_time/date_duration_types.hpp and documentation for month and year iterators. ptimeconst ptime &const boost::gregorian::months &Adds a months object and a ptime. Result will be same day-of-month as ptime unless original day was the last day of month. see date_time::months_duration for more details ptimeptime &const boost::gregorian::months &Adds a months object to a ptime. Result will be same day-of-month as ptime unless original day was the last day of month. see date_time::months_duration for more details ptimeconst ptime &const boost::gregorian::months &Subtracts a months object and a ptime. Result will be same day-of-month as ptime unless original day was the last day of month. see date_time::months_duration for more details ptimeptime &const boost::gregorian::months &Subtracts a months object from a ptime. Result will be same day-of-month as ptime unless original day was the last day of month. see date_time::months_duration for more details ptimeconst ptime &const boost::gregorian::years &Adds a years object and a ptime. Result will be same month and day-of-month as ptime unless original day was the last day of month. see date_time::years_duration for more details ptimeptime &const boost::gregorian::years &Adds a years object to a ptime. Result will be same month and day-of-month as ptime unless original day was the last day of month. see date_time::years_duration for more details ptimeconst ptime &const boost::gregorian::years &Subtracts a years object and a ptime. Result will be same month and day-of-month as ptime unless original day was the last day of month. see date_time::years_duration for more details ptimeptime &const boost::gregorian::years &Subtracts a years object from a ptime. Result will be same month and day-of-month as ptime unless original day was the last day of month. see date_time::years_duration for more details
Global header file to get all of posix time types
boost::int64_t gregorian::date gregorian::date_duration time_duration time_res_traits::tick_type time_res_traits::impl_type time_res_traits boost::int64_ttick_per_second1000000 simple_time_rep gregorian::date gregorian::date_duration time_duration time_res_traits::tick_type time_res_traits boost::int64_ttick_per_second1000000000 Simple implementation for the time rep. gregorian::date time_duration date_type time_duration_type bool bool bool bool date_typetime_duration_type date_time::time_duration< time_duration, time_res_traits >Base time duration type. time_res_traits time_res_traits::day_type time_res_traits::hour_type time_res_traits::min_type time_res_traits::sec_type time_res_traits::fractional_seconds_type time_res_traits::tick_type time_res_traits::impl_type hour_typemin_typesec_typefractional_seconds_type0 boost::date_time::special_valuesConstruct from special_values. impl_type date_time::time_resolution_traits< boost::date_time::time_resolution_traits_adapted64_impl, boost::date_time::nano, 1000000000, 9 >
boost::posix_time::time_durationAllows expression of durations as an hour count The argument must be an integral type T const &typename boost::enable_if< boost::is_integral< T >, void >::type *BOOST_DATE_TIME_NULLPTR boost::posix_time::time_durationAllows expression of durations as a minute count The argument must be an integral type T const &typename boost::enable_if< boost::is_integral< T >, void >::type *BOOST_DATE_TIME_NULLPTR boost::posix_time::time_durationAllows expression of durations as a seconds count The argument must be an integral type T const &typename boost::enable_if< boost::is_integral< T >, void >::type *BOOST_DATE_TIME_NULLPTR Allows expression of durations as milli seconds. date_time::subsecond_duration< time_duration, 1000 > date_time::subsecond_duration< time_duration, 1000 > Allows expression of durations as micro seconds. date_time::subsecond_duration< time_duration, 1000000 > date_time::subsecond_duration< time_duration, 1000000 > Allows expression of durations as nano seconds. date_time::subsecond_duration< time_duration, 1000000000 > date_time::subsecond_duration< time_duration, 1000000000 >
wptime_facet is depricated and will be phased out. use wtime_facet instead ptime_facet is depricated and will be phased out. use time_facet instead wptime_input_facet is depricated and will be phased out. use wtime_input_facet instead ptime_input_facet is depricated and will be phased out. use time_input_facet instead boost::date_time::time_facet< ptime, wchar_t > boost::date_time::time_facet< ptime, char > boost::date_time::time_input_facet< ptime, wchar_t > boost::date_time::time_input_facet< ptime, char > std::basic_ostream< CharT, TraitsT > &std::basic_ostream< CharT, TraitsT > &const ptime & std::basic_istream< CharT, Traits > &std::basic_istream< CharT, Traits > &ptime &input operator for ptime std::basic_ostream< CharT, TraitsT > &std::basic_ostream< CharT, TraitsT > &const boost::posix_time::time_period & std::basic_istream< CharT, Traits > &std::basic_istream< CharT, Traits > &time_period &input operator for time_period std::basic_ostream< CharT, Traits > &std::basic_ostream< CharT, Traits > &const time_duration &ostream operator for posix_time::time_duration std::basic_istream< CharT, Traits > &std::basic_istream< CharT, Traits > &time_duration &input operator for time_duration
std::basic_ostream< charT, traits > &std::basic_ostream< charT, traits > &const time_duration &ostream operator for posix_time::time_duration std::basic_ostream< charT, traits > &std::basic_ostream< charT, traits > &const ptime &ostream operator for posix_time::ptime std::basic_ostream< charT, traits > &std::basic_ostream< charT, traits > &const time_period &ostream operator for posix_time::time_period std::basic_istream< charT > &std::basic_istream< charT > &time_duration & std::basic_istream< charT > &std::basic_istream< charT > &ptime & std::basic_istream< charT > &std::basic_istream< charT > &time_period &operator>> for time_period. time_period must be in "[date time_duration/date time_duration]" format.
date_time::split_timedate_system< posix_time_system_config, 1000000000 > date_time::counted_time_rep< millisec_posix_time_system_config >
Iterator over a defined time duration. date_time::time_itr< ptime > A time clock that has a resolution of one second. date_time::second_clock< ptime > A time clock that has a resolution of one microsecond. date_time::microsec_clock< ptime > Define a dst null dst rule for the posix_time system. date_time::null_dst_rules< ptime::date_type, time_duration > Define US dst rule calculator for the posix_time system. date_time::us_dst_rules< ptime::date_type, time_duration >
date_time::base_time< ptime, posix_time_system >Time type with no timezone or other adjustments. posix_time_system time_system_type::time_rep_type time_system_type::time_duration_type ptime gregorian::datetime_duration_typeConstruct with date and offset in day. gregorian::dateConstruct a time at start of the given day (midnight) const time_rep_type &Copy from time_rep. const special_valuesConstruct from special value.
std::basic_string< charT >time_duration std::basic_string< charT >time_duration std::basic_string< charT >ptimeTime to simple format CCYY-mmm-dd hh:mm:ss.fffffff. std::basic_string< charT >time_period std::basic_string< charT >ptime std::basic_string< charT >ptime std::wstringtime_durationTime duration to wstring -hh::mm::ss.fffffff. Example: 10:09:03.0123456. std::wstringtime_durationTime duration in iso format -hhmmss,fffffff Example: 10:09:03,0123456. std::wstringptime std::wstringtime_periodConvert to wstring of form [YYYY-mmm-DD HH:MM::SS.ffffff/YYYY-mmm-DD HH:MM::SS.fffffff]. std::wstringptimeConvert iso short form YYYYMMDDTHHMMSS where T is the date-time separator. std::wstringptimeConvert to form YYYY-MM-DDTHH:MM:SS where T is the date-time separator.
std::stringtime_durationTime duration to string -hh::mm::ss.fffffff. Example: 10:09:03.0123456. std::stringtime_durationTime duration in iso format -hhmmss,fffffff Example: 10:09:03,0123456. std::stringptimeTime to simple format CCYY-mmm-dd hh:mm:ss.fffffff. std::stringtime_periodConvert to string of form [YYYY-mmm-DD HH:MM::SS.ffffff/YYYY-mmm-DD HH:MM::SS.fffffff]. std::stringptimeConvert iso short form YYYYMMDDTHHMMSS where T is the date-time separator. std::stringptimeConvert to form YYYY-MM-DDTHH:MM:SS where T is the date-time separator.
time_durationconst std::string &Creates a time_duration object from a delimited string. Expected format for string is "[-]h[h][:mm][:ss][.fff]". A negative duration will be created if the first character in string is a '-', all other '-' will be treated as delimiters. Accepted delimiters are "-:,.". ptimeconst std::string & ptimeconst std::string & ptimeconst std::string &
Time period type. date_time::period< ptime, time_duration >