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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, 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-06 09:09:12 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!skynet.be!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Marius Amado Alves Newsgroups: comp.lang.ada Subject: Re: ada calendar Date: Sat, 06 Dec 2003 17:01:18 +0000 Organization: Cuivre, Argent, Or Message-ID: References: <4948f537.0312060753.6b03e2ef@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1070730084 12996 80.67.180.195 (6 Dec 2003 17:01:24 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sat, 6 Dec 2003 17:01:24 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: <4948f537.0312060753.6b03e2ef@posting.google.com> X-Mailer: Ximian Evolution 1.4.5 X-OriginalArrivalTime: 06 Dec 2003 17:01:15.0319 (UTC) FILETIME=[8F242C70:01C3BC1A] 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:3182 Date: 2003-12-06T17:01:18+00:00 On Sat, 2003-12-06 at 15:53, 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 can do it with Ada.Calendar: Your_Function (Time_Of (Year_Number'Value (S (7 .. 10)), Month_Number'Value (S (4 .. 5)), Day_Number'Value (S (1 .. 2)))); where S is your string containing "27/06/2003" or similar.