--

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
12HH:MM:SS.mss13:27:54.123
13HH MM SS mss13 27 54 123
11HH:MM:SS 13:27:54
13HH MM SS 13 27 54
14HH.MM.SS.mss13.27.54.123
15HH.MM.SS 13.27.54
16YYYYMMDD HH:MM:SS.mss 20060314 13:27:54.123
17YYYY/MM/DD HH:MM:SS.mss2006/03/14 13:27:54.123
18DD/MM/YYYY HH:MM:SS.mss14/03/2006 13:27:54.123
19YYYYMMDD HH:MM:SS 20060314 13:27:54
20YYYY/MM/DD HH:MM:SS 2006/03/14 13:27:54
21DD/MM/YYYY HH:MM:SS 14/03/2006 13:27:54
22YYYY-MM-DD HH:MM:SS.mss2006-03-14 13:27:54.123
23DD-MM-YYYY HH:MM:SS.mss14-03-2006 13:27:54.123
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-DDTHH:MM:SS 2006-03-14T13:27:54
27YYYY-MM-DDTHH:MM:SS.mss2006-03-14T13:27:54.123
28YYYYMMDDTHH:MM:SS 20060314T13:27:54
29YYYYMMDDTHH:MM:SS.mss 20060314T13:27:54.123
30DD-MM-YYYYTHH:MM:SS.mss14-03-2006T13:27:54.123
31DD-MM-YYYYTHH:MM:SS 14-03-2006T13:27:54
32YYYYMMDDTHHMM 20060314T1327
33YYYYMMDDTHHMMSS 20060314T132754
34YYYYMMDDTHHMMSSMSS 20060314T132754123
35YYYY-MM-DD HH:MM:SSTZD (ISO8601)2006-03-04T13:27:54+03:45
2006-03-04T13:27:54-01:28
36YYYY-MM-DD HH:MMTZD (ISO8601)2006-03-04T13:27+03:45
2006-03-04T13:27-01:28
37NCSA Common Log Date Time04/Mar/2006:13:27:54 -0537
17/Sep/2006:18:12:45 +1142
38RFC-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