C++boost库总结选读.doc

第1章 Boost程序库总论 使用Boost,将大大增强C++的功能和表现力 ? 第2章 时间与日期 timer提供毫秒级的计时精度,内部是通过std::clock取时间的 progress_timer自动打印某生命周期的执行时间 原则上程序库的代码是不应该被用户修改的 progress_display可以在控制台上显示程序的执行进度 date_time库能很好的表示日期时间概念,并能和C的时间结构tm进行友好互转 date类提供年月日和星期几的概念。data可通过from_string或from_undelimited_string从字符串解析而来,可通过to_simple_string、to_iso_string、to_extended_iso_string转换为字符串。(精度到天的DateTime) day_clock是精度到天的时钟 date_duration表示的是天精度的时间间隔概念,别名为days,另外还有years、months、weeks date_period表示两个date之间的日期区间(精度到天的TimeSpan) date_iterator、week_iterator、month_iterator和year_iterator是时间的迭代器 boost::greorian::gregorian_calendar中有实用静态方法:is_leap_year、en

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档