This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] Add new function Value


Tested on i686-linux, committed on trunk.

This patch introduces the function Value which has the task of parsing
a Time value represented as a String. The following time formats are
supported:
--
   yyyy*mm*dd hh:mm:ss  - Delimiter '*' is either '-' or '/'
   yyyy*mm*dd           - The time of day is set to 00:00:00
--
   yy*mm*dd hh:mm:ss    - Year is assumend to be 20YY
   yy*mm*dd             - The time of day is set to 00:00:00
--
   hh:mm:ss             - Date is the current date

2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>

	* g-catiio.ads, g-catiio.adb (Value): New function.
	Given an input String, try and parse a valid Time value.

Attachment: difs
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]