🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #963

Date/Time manipulation

#963
From: Assen Krastev
Date: Fri, 30 Mar 2007 11:45
17 lines
1056 bytes
In a stored proc:
...
returns (t timestamp)
as
declare variable time1 as timestamp;
declare variable time2 as timestamp;
declare variable d as double precision;
begin
  ...
  d=time2-time1;
  t=cast(d as timestamp);<---- error
  suspend;
end

How can I cast 'd' back to TimeStamp?

Thanks.
Technical Details
Message-ID: <460cf6d2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,e403051073053b92,start
X-Google-Attributes: gid114a0e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Assen Krastev" <assen@transimpex.bg>
Newsgroups: borland.public.interbase.sql
Subject: Date/Time manipulation
Date: Fri, 30 Mar 2007 14:45:33 +0300
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896
NNTP-Posting-Host: 212.50.10.82
Message-ID: <460cf6d2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1175254738 212.50.10.82 (30 Mar 2007 04:38:58 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail