From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7dadb26e573572d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-06 18:49:32 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ada calendar References: <4948f537.0312060753.6b03e2ef@posting.google.com> In-Reply-To: <4948f537.0312060753.6b03e2ef@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <0zwAb.3042$rP6.794@newsread2.news.pas.earthlink.net> Date: Sun, 07 Dec 2003 02:49:32 GMT NNTP-Posting-Host: 63.184.16.95 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1070765372 63.184.16.95 (Sat, 06 Dec 2003 18:49:32 PST) NNTP-Posting-Date: Sat, 06 Dec 2003 18:49:32 PST Xref: archiver1.google.com comp.lang.ada:3190 Date: 2003-12-07T02:49:32+00:00 List-Id: shoko wrote: > now if i have the following date:"27/06/2003" > and i want to insert him to a function that accept calendar.time > how do i do it You break it apart, convert the pieces to Integer (or an appropriate subtype of Integer defined in Ada.Calendar), and pass the values to Ada.Calendar.Time_Of. > and how do i convert calendar.time to string? You break it into values using Ada.Calendar.Split, convert the values to Strings, and concatenate the Strings together with your desired separators between them. If you can use an existing package to achieve this, PragmARC.Date_Handler can produce almost any representation of a Time you can think of: http://home.earthlink.net/~jrcarter010/pragmarc.htm -- Jeff Carter "Mr. President, we must not allow a mine-shaft gap!" Dr. Strangelove 33