C++ Date And Time Parsing Utilities

 www.partow.net  .: Home :.   .: Links :.   .: Search :.   .: Contact :. 


Description

The C++ Date And Time Parsing Utilities library is comprised of a set of extremely fast and efficient parsing routines for common date and time formats.

Date And Time Parsing Utilities Library License

Free use of the Date and Time Parsing Utilities Library is permitted under the guidelines and in accordance with the most current version of the "Common Public License."

Compatability

The C++ Date and Time Parsing Utilities Library implementation is fully compatible with the following C++ compilers:

  • GNU Compiler Collection (4.1+)
  • Intel® C++ Compiler (9.x+)
  • Clang/LLVM (1.1+)
  • PGI C++ (10.x+)
  • Microsoft Visual Studio C++ Compiler (7.1+)
  • Comeau C++ Compiler (4.3+)
  • IBM XL C/C++ (10.x+)
  • C++ Builder (XE4+)

Download


Date-Time Format Capabilities

The following is a list of the various formats that are supported by the library.

#FormatExample
00YYYYMMDD 20060314
01YYYYDDMM 20061403
02YYYY/MM/DD2006/03/14
03YYYY/DD/MM2006/14/03
04DD/MM/YYYY14/03/2006
05MM/DD/YYYY03/14/2006
06YYYY-MM-DD2006-03-14
07YYYY-DD-MM2006-14-03
08DD-MM-YYYY14-03-2006
09MM-DD-YYYY03-14-2006
10DD.MM.YYYY14.03.2006
11MM.DD.YYYY03.14.2006
12DD-Mon-YY14-Mar-06
7-Mar-06
13DD-Mon-YYYY14-Mar-2006
7-Mar-2006
14HH:MM:SS.mss13:27:54.123
15HH MM SS mss13 27 54 123
16HH:MM:SS 13:27:54
17HH MM SS 13 27 54
18HH.MM.SS.mss13.27.54.123
19HH.MM.SS 13.27.54
20YYYYMMDD HH:MM:SS.mss 20060314 13:27:54.123
21YYYY/MM/DD HH:MM:SS.mss2006/03/14 13:27:54.123
22DD/MM/YYYY HH:MM:SS.mss14/03/2006 13:27:54.123
23YYYYMMDD HH:MM:SS 20060314 13:27:54
24YYYY/MM/DD HH:MM:SS 2006/03/14 13:27:54
25DD/MM/YYYY HH:MM:SS 14/03/2006 13:27:54
26YYYY-MM-DD HH:MM:SS.mss2006-03-14 13:27:54.123
27DD-MM-YYYY HH:MM:SS.mss14-03-2006 13:27:54.123
28YYYY-MM-DD HH:MM:SS 2006-03-14 13:27:54
29DD-MM-YYYY HH:MM:SS 14-03-2006 13:27:54
30YYYY-MM-DDTHH:MM:SS 2006-03-14T13:27:54
31YYYY-MM-DDTHH:MM:SS.mss2006-03-14T13:27:54.123
32YYYYMMDDTHH:MM:SS 20060314T13:27:54
33YYYYMMDDTHH:MM:SS.mss 20060314T13:27:54.123
34DD-MM-YYYYTHH:MM:SS.mss14-03-2006T13:27:54.123
35DD-MM-YYYYTHH:MM:SS 14-03-2006T13:27:54
36YYYYMMDDTHHMM 20060314T1327
37YYYYMMDDTHHMMSS 20060314T132754
38YYYYMMDDTHHMMSSMSS 20060314T132754123
39YYYY-MM-DD HH:MM:SSTZD (ISO8601)2006-03-04T13:27:54+03:45
2006-03-04T13:27:54-01:28
40YYYY-MM-DD HH:MMTZD (ISO8601)2006-03-04T13:27+03:45
2006-03-04T13:27-01:28
41NCSA Common Log Date Time04/Mar/2006:13:27:54 -0537
17/Sep/2006:18:12:45 +1142
42RFC-822 HTTP Date TimeSat, 04 Mar 2006 13:27:54 GMT
Sat, 04 Mar 2006 13:27:54 -0234

Dependencies

The Date and Time Parsing Utilities Library requires the String Toolkit library.




Copyright Arash Partow