comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.tsoh+bauhaus@maps.futureapps.de>
Subject: Re: Getting current date and time
Date: Tue, 24 Jul 2007 11:41:07 +0200
Date: 2007-07-24T11:40:43+02:00	[thread overview]
Message-ID: <1185270067.24786.10.camel@kartoffel> (raw)
In-Reply-To: <1185267194.506294.197760@w3g2000hsg.googlegroups.com>

On Tue, 2007-07-24 at 01:53 -0700, Maciej Sobczak wrote:
> On 23 Lip, 23:43, Adam Beneschan <a...@irvine.com> wrote:
> 
> > In Ada 2005, this is handled by the Differences procedure in
> > Ada.Calendar.Arithmetic (9.6.1).  You can use Ada.Calendar.Time_Of to
> > create the Time value for January 1, 1970, and then use that as a
> > parameter to Differences.
> 
> The problem is that I need just a number of seconds (this is for
> interfacing with other software which uses that Unix-like time
> descriptions), so I cannot use the value which is broken down into
> several components.
> Moreover, the concept of leap seconds does not fit here neither (or
> does it?).

If recomputing the seconds doesn't seem adequate,
and you want Unix epoch seconds, why not call the
system function that provides Unix epoch seconds?





  reply	other threads:[~2007-07-24  9:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-22 21:21 Getting current date and time Maciej Sobczak
2007-07-22 23:00 ` Martin
2007-07-23 15:24   ` koburtch
2007-07-23 19:57   ` Maciej Sobczak
2007-07-23 20:02     ` Maciej Sobczak
2007-07-23 20:08       ` Maciej Sobczak
2007-07-23 21:43         ` Adam Beneschan
2007-07-24  8:53           ` Maciej Sobczak
2007-07-24  9:41             ` Georg Bauhaus [this message]
2007-07-24  9:58               ` Maciej Sobczak
2007-07-24 15:24             ` Adam Beneschan
2007-07-25  7:26               ` Maciej Sobczak
2007-07-25  7:42                 ` AW: " Grein, Christoph (Fa. ESG)
2007-07-28  8:20             ` Wilhelm Spickermann
2007-08-01  9:45         ` Jacob Sparre Andersen
2007-07-23 21:39       ` Adam Beneschan
2007-07-23 19:26 ` Gautier
replies disabled

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