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=-2.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=unavailable 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-07 04:37:37 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!teaser.fr!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Duncan Sands Newsgroups: comp.lang.ada Subject: Re: ada calendar Date: Sun, 7 Dec 2003 13:36:28 +0100 Organization: Cuivre, Argent, Or Message-ID: References: <4948f537.0312060753.6b03e2ef@posting.google.com> <0zwAb.3042$rP6.794@newsread2.news.pas.earthlink.net> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1070800604 66680 80.67.180.195 (7 Dec 2003 12:36:44 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sun, 7 Dec 2003 12:36:44 +0000 (UTC) To: Jeffrey Carter , comp.lang.ada@ada-france.org Return-Path: User-Agent: KMail/1.5.4 In-Reply-To: <0zwAb.3042$rP6.794@newsread2.news.pas.earthlink.net> Content-Disposition: inline X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:3197 Date: 2003-12-07T13:36:28+01:00 On Sunday 07 December 2003 03:49, Jeffrey Carter wrote: > 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? GNAT comes with GNAT.Calendar.Time_IO. Duncan.