comp.lang.ada
 help / color / mirror / Atom feed
* How to convert an Fixed_Point to to an Integer ?
@ 1996-12-22  0:00 Jerry van Dijk
  1996-12-23  0:00 ` Jerry van Dijk
                   ` (5 more replies)
  0 siblings, 6 replies; 25+ messages in thread
From: Jerry van Dijk @ 1996-12-22  0:00 UTC (permalink / raw)




Hopefully this newsfeed will work...

The question really is: how do I convert an Ada.Calendar.Time (ie a
Duration, ie a
ordinary fixed_point type) to an Integer representing the nearest number of
seconds.
like:

	Num_Seconds : Integer;

	Num_Seconds := To_Integer (Ada.Calendar.Clock);

	function To_Integer (T : Time) returns Integer is
	begin
		???
	end To_Integer;

-- 
+----------------+------------------------+
| Jerry van Dijk | email: jvandyk@ibm.net |
|   Consultant   |        Team Ada        |
| Ordina Finance | *JerryWare HQ* Holland |
+----------------+------------------------+




^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~1997-01-02  0:00 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-22  0:00 How to convert an Fixed_Point to to an Integer ? Jerry van Dijk
1996-12-23  0:00 ` Jerry van Dijk
1996-12-23  0:00 ` Eric Miller
1996-12-23  0:00 ` Larry Kilgallen
1996-12-23  0:00   ` Robert Dewar
1996-12-24  0:00     ` Jerry van Dijk
1996-12-24  0:00       ` Robert Dewar
1996-12-24  0:00         ` Norman H. Cohen
1996-12-24  0:00           ` Robert Dewar
1996-12-26  0:00             ` Keith Thompson
1996-12-26  0:00               ` Robert Dewar
1996-12-25  0:00         ` Jerry van Dijk
1996-12-25  0:00           ` Robert Dewar
1996-12-26  0:00             ` Norman H. Cohen
1996-12-27  0:00               ` Jerry van Dijk
1996-12-27  0:00                 ` Leap seconds in Unix time (was: Re: How to convert an Fixed_Point to to an Integer ?) Norman H. Cohen
1996-12-30  0:00               ` How to convert an Fixed_Point to to an Integer ? Mike Young
1996-12-30  0:00                 ` Michael F Brenner
1996-12-30  0:00                 ` 2000 is a leap year (was: How to convert an Fixed_Point to to an Inte) Larry Kilgallen
1996-12-31  0:00                 ` How to convert an Fixed_Point to to an Integer ? Keith Thompson
1997-01-02  0:00             ` 2000 is a leap year (was: How to convert an Fixed_Point to to an Inte) Mike Paley
1996-12-30  0:00 ` How to convert an Fixed_Point to to an Integer ? Steve Jones - JON
1996-12-30  0:00   ` Jacques Rouillard
1996-12-30  0:00 ` Dave Barnes
1996-12-30  0:00 ` Steve Jones - JON

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