From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: Getting current date and time
Date: Tue, 24 Jul 2007 01:53:14 -0700
Date: 2007-07-24T01:53:14-07:00 [thread overview]
Message-ID: <1185267194.506294.197760@w3g2000hsg.googlegroups.com> (raw)
In-Reply-To: <1185227010.432172.50300@e16g2000pri.googlegroups.com>
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?).
Try this on GNU/Linux:
$ date +%s
I need to get the same number at the time the program is executed.
--
Maciej Sobczak
http://www.msobczak.com/
next prev parent reply other threads:[~2007-07-24 8:53 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 [this message]
2007-07-24 9:41 ` Georg Bauhaus
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