If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > datetime interval in SP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-05, 06:08
supinformix supinformix is offline
Registered User
 
Join Date: Apr 2004
Location: Brussels
Posts: 57
datetime interval in SP

We want to now the execution time of some nightly stored procedure.
Our test :
define now1 datetime year to fraction ;
define now2 datetime year to fraction ;

select current into now1 from systables where tabid = 1;
system "sleep 20"
select current into now2 from systables where tabid = 1;

While we're expecting an interval, both datetime are equal.

The same result if the SP calls another SP which return the time.
Of course our scheduler could do it, but it would be nicer in the SP.

informix 7.31 aix 4.3
Someone knows an elegant workaround ?
Thanks,

Yves
__________________
Yves & Willy
Reply With Quote
  #2 (permalink)  
Old 11-23-05, 09:42
June C. Hunt June C. Hunt is offline
Registered User
 
Join Date: Feb 2005
Posts: 43
Try this - I believe it will work with IDS 7.31:

SELECT DBINFO('utc_to_datetime', sh_curtime) AS CURRENT
FROM sysmaster:sysshmvals;
Reply With Quote
  #3 (permalink)  
Old 11-29-05, 03:42
supinformix supinformix is offline
Registered User
 
Join Date: Apr 2004
Location: Brussels
Posts: 57
Ok thanks,
that's wat I'm looking for.
Have a nice day.
__________________
Yves & Willy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On