Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Boost.Locale: Date, Time, Timezone and Calendar manipulations

Boost , ,

Date, Time, Timezone and Calendar manipulations

Namespaces

 boost::locale::period
 Namespace that contains various types for manipulation with dates.
 
 boost::locale::time_zone
 namespace that holds functions for operating with global time zone
 

Classes

class  boost::locale::date_time_error
 This error is thrown in case of invalid state that occurred. More...
 
struct  boost::locale::date_time_period
 This class represents a pair of period_type and the integer values that describes its amount. For example 3 days or 4 years. More...
 
class  boost::locale::date_time_period_set
 this class that represents a set of periods, More...
 
class  boost::locale::calendar
 this class provides an access to general calendar information. More...
 
class  boost::locale::date_time
 this class represents a date time and allows to perform various operation according to the locale settings. More...
 
class  boost::locale::date_time_duration
 This class represents a period: a pair of two date_time objects. More...
 

Functions

date_time_period_set boost::locale::operator+ (date_time_period_set const &a, date_time_period_set const &b)
 
date_time_period_set boost::locale::operator- (date_time_period_set const &a, date_time_period_set const &b)
 
template<typename CharType >
std::basic_ostream< CharType > & boost::locale::operator<< (std::basic_ostream< CharType > &out, date_time const &t)
 
template<typename CharType >
std::basic_istream< CharType > & boost::locale::operator>> (std::basic_istream< CharType > &in, date_time &t)
 
date_time_duration boost::locale::operator- (date_time const &later, date_time const &earlier)
 

Detailed Description

Этот модуль предоставляет различные услуги по календарю, часовому поясу и дате.

Function Documentation

date_time_period_set boost::locale::operator+ ( date_time_period_set const &  a,
date_time_period_set const &  b 
)
inline

Добавить два набора периодов. Обратите внимание, что этот оператор не является коммутативным.

date_time_period_set boost::locale::operator- ( date_time_period_set const &  a,
date_time_period_set const &  b 
)
inline

Применяйте два набора периодов, когда все периоды набораизменяются.

date_time_duration boost::locale::operator- ( date_time const &  later,
date_time const &  earlier 
)
inline

Вычисляет разницу между двумя датами, левый операнд — более поздняя точка по временной линии. ВозвращениеДата_время_продолжительностьОбъект.

template<typename CharType >
std::basic_ostream<CharType>& boost::locale::operator<< ( std::basic_ostream< CharType > &  out,
date_time const &  t 
)

Дата_времяtдля вывода потокаиз.

Эта функция использует локализацию, календарь и часовой пояс целевого потокав.

Например:

date_time now(time(0),hebrew_calendar)
cout << "Year: " << period::year(now) <<" Full Date:"<< now;

Выход может быть Год:5770 Полная дата: 1 января 2010

template<typename CharType >
std::basic_istream<CharType>& boost::locale::operator>> ( std::basic_istream< CharType > &  in,
date_time &  t 
)

Дата_времяtиз выходного потокав

Эта функция использует местоположение, календарь и часовой пояс исходного потокав.

Статья Boost.Locale: Date, Time, Timezone and Calendar manipulations раздела может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 01:11:01/0.0054202079772949/1