# Posix Time Reference

`ptime` `std::time_t` Function that converts a time_t into a ptime.
std::time_t ``ptime`` Function that converts a ptime into a time_t.
std::tm `const `boost::posix_time::ptime` &` Convert a time to a tm structure truncating any fractional seconds.
std::tm `const `boost::posix_time::time_duration` &` Convert a `time_duration` to a tm structure truncating any fractional seconds and zeroing fields for date components.
`ptime` `const std::tm &` Convert a tm struct to a ptime ignoring is_dst flag.
TimeT `const 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.

BOOST_CXX14_CONSTEXPR `ptime` `const `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

BOOST_CXX14_CONSTEXPR `ptime` ``ptime` &` `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

BOOST_CXX14_CONSTEXPR `ptime` `const `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

BOOST_CXX14_CONSTEXPR `ptime` ``ptime` &` `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

BOOST_CXX14_CONSTEXPR `ptime` `const `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

BOOST_CXX14_CONSTEXPR `ptime` ``ptime` &` `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

BOOST_CXX14_CONSTEXPR `ptime` `const `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

BOOST_CXX14_CONSTEXPR `ptime` ``ptime` &` `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_t
tick_per_second
1000000
`simple_time_rep`
gregorian::date
gregorian::date_duration
`time_duration`
time_res_traits::tick_type
time_res_traits
boost::int64_t
tick_per_second
1000000000
Simple implementation for the time rep.
gregorian::date
`time_duration`
date_type
`time_duration_type`
BOOST_CXX14_CONSTEXPR bool
BOOST_CXX14_CONSTEXPR bool
BOOST_CXX14_CONSTEXPR bool
BOOST_CXX14_CONSTEXPR bool
date_type
time_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_type
min_type
sec_type
fractional_seconds_type
0
boost::date_time::special_values
Construct 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_duration

Allows 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_duration

Allows 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_duration

Allows 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::date
time_duration_type
Construct with date and offset in day.
gregorian::date
Construct a time at start of the given day (midnight)
const time_rep_type &
Copy from time_rep.
const special_values
Construct from special value.
BOOST_CXX14_CONSTEXPR bool `const `ptime` &` `const `ptime` &`
std::basic_string< charT > ``time_duration``
std::basic_string< charT > ``time_duration``
std::basic_string< charT > ``ptime`` Time 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::wstring ``time_duration`` Time duration to wstring -hh::mm::ss.fffffff. Example: 10:09:03.0123456.
std::wstring ``time_duration`` Time duration in ISO 8601 format -hhmmss.fffffff. Example: 10:09:03.0123456.
std::wstring ``ptime``
std::wstring `time_period` Convert to wstring of form [YYYY-mmm-DD HH:MM::SS.ffffff/YYYY-mmm-DD HH:MM::SS.fffffff].
std::wstring ``ptime`` Convert ISO 8601 short form YYYYMMDDTHHMMSS where T is the date-time separator.
std::wstring ``ptime`` Convert to form YYYY-MM-DDTHH:MM:SS where T is the date-time separator.
std::string ``time_duration`` Time duration to string -hh::mm::ss.fffffff. Example: 10:09:03.0123456.
std::string ``time_duration`` Time duration in ISO 8601 format -hhmmss.fffffff. Example: 10:09:03.0123456.
std::string ``ptime`` Time to simple format CCYY-mmm-dd hh:mm:ss.fffffff.
std::string `time_period` Convert to string of form [YYYY-mmm-DD HH:MM::SS.ffffff/YYYY-mmm-DD HH:MM::SS.fffffff].
std::string ``ptime`` Convert ISO 8601 short form YYYYMMDDTHHMMSS where T is the date-time separator.
std::string ``ptime`` Convert to form YYYY-MM-DDTHH:MM:SS where T is the date-time separator.
`time_duration` `const 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 "-:,.".

`ptime` `const std::string &`
`ptime` `const std::string &`
`ptime` `const std::string &`
Time period type.
date_time::period< `ptime`, `time_duration` >
boost::posix_time::time_duration
integral_constant< int, BOOST_DATE_TIME_POSIX_TIME_DURATION_VERSION >
boost::posix_time::ptime

time_duration objects are broken down into 4 parts for serialization: types are hour_type, min_type, sec_type, and fractional_seconds_type as defined in the time_duration class

void `Archive &` `const `posix_time::time_duration` &` `unsigned int`
void `Archive &` ``posix_time::time_duration` &` Function to load `posix_time::time_duration` objects using serialization lib.

time_duration objects are broken down into 4 parts for serialization: types are hour_type, min_type, sec_type, and fractional_seconds_type as defined in the time_duration class

void `Archive &` ``posix_time::time_duration` &` `unsigned int`
void `Archive &` `const `posix_time::ptime` &` `unsigned int` Function to save `posix_time::ptime` objects using serialization lib.

ptime objects are broken down into 2 parts for serialization: a date object and a time_duration onject

void `Archive &` ``posix_time::ptime` &` `unsigned int` Function to load `posix_time::ptime` objects using serialization lib.

ptime objects are broken down into 2 parts for serialization: a date object and a time_duration onject

void `Archive &` ``posix_time::ptime` *` `const unsigned int` override needed b/c no default constructor
void `Archive &` `const posix_time::time_period &` `unsigned int` Function to save posix_time::time_period objects using serialization lib.

time_period objects are broken down into 2 parts for serialization: a begining ptime object and an ending ptime object

void `Archive &` `boost::posix_time::time_period &` `unsigned int` Function to load posix_time::time_period objects using serialization lib.

time_period objects are broken down into 2 parts for serialization: a begining ptime object and an ending ptime object

void `Archive &` `boost::posix_time::time_period *` `const unsigned int` override needed b/c no default constructor