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 > Convert cdrtime

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-04, 07:35
szabi szabi is offline
Registered User
 
Join Date: Jan 2004
Location: Slovakia
Posts: 3
Convert cdrtime

Hi.

Is there any way to convert cdrtime (integer) to datetime format ? Or what interprets this integer number. If I know, it is number of seconds since 1970.

Thanks

Last edited by szabi; 11-27-04 at 05:47.
Reply With Quote
  #2 (permalink)  
Old 11-23-04, 09:25
nog nog is offline
Registered User
 
Join Date: Nov 2004
Posts: 26
the sysmaster database has a SP called l2date;

it looks like this,

create procedure l2date ( l int ) returning date;
return trunc((l/86400) + 25568 );
end procedure;

does this help?
Reply With Quote
  #3 (permalink)  
Old 11-23-04, 10:14
szabi szabi is offline
Registered User
 
Join Date: Jan 2004
Location: Slovakia
Posts: 3
Thumbs up

Yes, it helps. Thank you very much.
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