Example of using date_time functions for generating calendar for current year.
#include <boost/locale.hpp>
#include <iostream>
#include <iomanip>
#include <ctime>
int main()
{
    using namespace boost::locale;
    std::locale::global(gen(""));
    std::cout.imbue(std::locale());
    
    
    
    std::cout << 
format(
"{1,ftime='%Y'}") % now << std::endl;
    
    
    
        
            std::cout << 
format(
"{1,ftime='%B'}") % now <<std::endl;
        else
            std::cout << 
format(
"{1,ftime='%B'} ({1,ftime='%Y-%m-%d',locale=en} - {2,locale=en,ftime='%Y-%m-%d'})")
                % now 
        
        for(int i=0;i<7;i++) {
            std::cout << 
format(
"{1,w=8,ftime='%a'} ") % tmp;
        }
        std::cout << std::endl;
        for(int i=0;i<skip*9;i++)
            std::cout << ' ';
            std::cout << 
format(
"{1,w=8,ftime='%e'} ") % now;     
                std::cout << std::endl;
        }
        std::cout << std::endl;
    }
}