comp.lang.ada
 help / color / mirror / Atom feed
From: Duncan Sands <baldrick@free.fr>
To: Jeffrey Carter <spam@spam.com>, comp.lang.ada@ada-france.org
Subject: Re: ada calendar
Date: Sun, 7 Dec 2003 13:36:28 +0100
Date: 2003-12-07T13:36:28+01:00	[thread overview]
Message-ID: <mailman.40.1070800602.31149.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <0zwAb.3042$rP6.794@newsread2.news.pas.earthlink.net>

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.



  reply	other threads:[~2003-12-07 12:36 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-06 15:53 ada calendar shoko
2003-12-06 17:01 ` Marius Amado Alves
2003-12-08 19:22   ` Pascal Obry
2003-12-09  4:48     ` Nick Roberts
2003-12-09 13:23       ` Wes Groleau
2003-12-07  2:49 ` Jeffrey Carter
2003-12-07 12:36   ` Duncan Sands [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-12-05 21:00 shoko
2003-12-05 22:34 ` Stephen Leake
2003-12-06  0:11   ` Nick Roberts
2003-12-08  7:49     ` Reinert Korsnes
2003-12-09  7:40       ` tmoran
2003-12-09 15:59         ` Nick Roberts
2003-12-10  8:16           ` Robert I. Eachus
2003-12-10 12:27             ` Thomas Wolf
2003-12-18 19:03               ` Randy Brukardt
2003-12-05 22:55 ` tmoran
2003-12-06  0:01   ` Marius Amado Alves
2003-12-06  0:21     ` tmoran
2003-12-06 15:08       ` Marius Amado Alves
2003-12-06 16:10 ` David C. Hoos
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox