DateTimeFormat.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // DateTimeFormat.cpp
  3. //
  4. // $Id: //poco/1.4/Foundation/src/DateTimeFormat.cpp#2 $
  5. //
  6. // Library: Foundation
  7. // Package: DateTime
  8. // Module: DateTimeFormat
  9. //
  10. // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
  11. // and Contributors.
  12. //
  13. // SPDX-License-Identifier: BSL-1.0
  14. //
  15. #include "Poco/DateTimeFormat.h"
  16. namespace Poco {
  17. const std::string DateTimeFormat::ISO8601_FORMAT("%Y-%m-%dT%H:%M:%S%z");
  18. const std::string DateTimeFormat::ISO8601_FRAC_FORMAT("%Y-%m-%dT%H:%M:%s%z");
  19. const std::string DateTimeFormat::RFC822_FORMAT("%w, %e %b %y %H:%M:%S %Z");
  20. const std::string DateTimeFormat::RFC1123_FORMAT("%w, %e %b %Y %H:%M:%S %Z");
  21. const std::string DateTimeFormat::HTTP_FORMAT("%w, %d %b %Y %H:%M:%S %Z");
  22. const std::string DateTimeFormat::RFC850_FORMAT("%W, %e-%b-%y %H:%M:%S %Z");
  23. const std::string DateTimeFormat::RFC1036_FORMAT("%W, %e %b %y %H:%M:%S %Z");
  24. const std::string DateTimeFormat::ASCTIME_FORMAT("%w %b %f %H:%M:%S %Y");
  25. const std::string DateTimeFormat::SORTABLE_FORMAT("%Y-%m-%d %H:%M:%S");
  26. const std::string DateTimeFormat::WEEKDAY_NAMES[] =
  27. {
  28. "Sunday",
  29. "Monday",
  30. "Tuesday",
  31. "Wednesday",
  32. "Thursday",
  33. "Friday",
  34. "Saturday"
  35. };
  36. const std::string DateTimeFormat::MONTH_NAMES[] =
  37. {
  38. "January",
  39. "February",
  40. "March",
  41. "April",
  42. "May",
  43. "June",
  44. "July",
  45. "August",
  46. "September",
  47. "October",
  48. "November",
  49. "December"
  50. };
  51. } // namespace Poco