parse_format_base.hpp 961 B

1234567891011121314151617181920212223242526272829
  1. #ifndef DATE_TIME_PARSE_FORMAT_BASE__
  2. #define DATE_TIME_PARSE_FORMAT_BASE__
  3. /* Copyright (c) 2002,2003 CrystalClear Software, Inc.
  4. * Use, modification and distribution is subject to the
  5. * Boost Software License, Version 1.0. (See accompanying
  6. * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
  7. * Author: Jeff Garland
  8. * $Date$
  9. */
  10. namespace boost {
  11. namespace date_time {
  12. //! Enum for distinguishing parsing and formatting options
  13. enum month_format_spec {month_as_integer, month_as_short_string,
  14. month_as_long_string};
  15. //! Enum for distinguishing the order of Month, Day, & Year.
  16. /*! Enum for distinguishing the order in which Month, Day, & Year
  17. * will appear in a date string */
  18. enum ymd_order_spec {ymd_order_iso, //order is year-month-day
  19. ymd_order_dmy, //day-month-year
  20. ymd_order_us}; //order is month-day-year
  21. } }//namespace date_time
  22. #endif