This module provides various calendar, timezone and date time services 
  
  | 
        
          | date_time_period_set boost::locale::operator+ | ( | date_time_period_set const & | a, |  
          |  |  | date_time_period_set const & | b |  
          |  | ) |  |  |  | inline | 
 
Append two periods sets. Note this operator is not commutative 
 
 
  
  | 
        
          | date_time_period_set boost::locale::operator- | ( | date_time_period_set const & | a, |  
          |  |  | date_time_period_set const & | b |  
          |  | ) |  |  |  | inline | 
 
Append two period sets when all periods of set change their sign 
 
 
  
  | 
        
          | date_time_duration boost::locale::operator- | ( | date_time const & | later, |  
          |  |  | date_time const & | earlier |  
          |  | ) |  |  |  | inline | 
 
Calculates the difference between two dates, the left operand is a later point on time line. Returns date_time_duration object. 
 
 
template<typename CharType > 
      
        
          | std::basic_ostream<CharType>& boost::locale::operator<< | ( | std::basic_ostream< CharType > & | out, | 
        
          |  |  | date_time const & | t | 
        
          |  | ) |  |  | 
      
 
Writes date_time t to output stream out.
This function uses locale, calendar and time zone of the target stream in.
For example: 
date_time now(
time(0),hebrew_calendar)
cout << "Year: " << period::year(now) <<" Full Date:"<< now;
The output may be Year:5770 Full Date:Jan 1, 2010 
 
 
template<typename CharType > 
      
        
          | std::basic_istream<CharType>& boost::locale::operator>> | ( | std::basic_istream< CharType > & | in, | 
        
          |  |  | date_time & | t | 
        
          |  | ) |  |  | 
      
 
Reads date_time t from output stream in 
This function uses locale, calendar and time zone of the source stream in.