Ask a Question related to Informix, Design and Development.
-
problems #1
Current time in a procedure ??!!
Hi,
i want to put a lot of trace (log time in a table) in some procedure.
The function "current" show the same time by statement. How can i get
the real current time in a procedure ?
please help me
--
Posted via [url]http://dbforums.com[/url]
problems Guest
-
Outputting current time
I output the current day/date on our web site home page. We recentlt moved to an american server that is 10 hours behing us in Australia. Whats the... -
Saving current date and time in ASP and ACCESS
Hi all, Im developing a simple web page and Im new to ASP. I want to save the current date and time in my MS ACCESS table I have a field in... -
Current Time
I need to show a current time in this mode ( 29.3 secondes ) how i do ?? I use this for show current time in this mode ( 29340 ) i don't know... -
How to change the current thread current culture at run time.
I have created a new culture : Dim objCulture As New CultureInfo("he") //hebrew When I tried to assign it to the current thread. ... -
Current Date & Time
I want to display the current date & time on my web site. Not being a code guru could someone please tell me what is the simplest script that works... -
Jonathan Leffler #2
Re: Current time in a procedure ??!!
problems wrote:
Google is your friend. [url]http://groups.google.com/[/url]> i want to put a lot of trace (log time in a table) in some procedure.
> The function "current" show the same time by statement. How can i get
> the real current time in a procedure ?
Suitable keywords: current time procedure
Optional extras: dbinfo sysshmvals
You can probably limit the date range to this year - certainly this
century.
--
Jonathan Leffler #include <disclaimer.h>
Email: [email]jleffler@earthlink.net[/email], [email]jleffler@us.ibm.com[/email]
Guardian of DBD::Informix v2003.04 -- [url]http://dbi.perl.org/[/url]
Jonathan Leffler Guest
-
rkusenet #3
Re: Current time in a procedure ??!!
"problems" <member46368@dbforums.com> wrote in message news:3540871.1067526000@dbforums.com...create this function in sysmaster database and use it in your SP.>
> Hi,
>
> i want to put a lot of trace (log time in a table) in some procedure.
> The function "current" show the same time by statement. How can i get
> the real current time in a procedure ?
>
create function fn_getcurrtime() returns datetime year to second
define cur_time datetime year to second;
select DBINFO('utc_to_datetime',sh_curtime)
into cur_time
from sysmaster:sysshmvals;
return cur_time ;
end function ;
GRANT EXECUTE ON dba.fn_getcurrtime TO public ;
rkusenet Guest
-
problems #4
Re: Current time in a procedure ??!!
those solutions don't work !
it seems that I can't have the current time in a statement even if I
call an other function. The current time stop at the begening of a
procedure. How can i get the OS time in an informix function ???
--
Posted via [url]http://dbforums.com[/url]
problems Guest
-
Alexey Sonkin #5
RE: Current time in a procedure ??!!
You are wrong:
select DBINFO('utc_to_datetime',sh_curtime)
into end_time
from sysmaster:'informix'.sysshmvals;
works perfectly from SP, if 1 second accuracy is enough
------------------------------------------
Alexey Sonkin
Senior Database Administrator
sending to informix-list> -----Original Message-----
> From: problems [mailto:member46368@dbforums.com]
> Sent: Monday, November 03, 2003 10:30 AM
> To: [email]informix-list@iiug.org[/email]
> Subject: Re: Current time in a procedure ??!!
>
>
> those solutions don't work !
>
>
>
> it seems that I can't have the current time in a statement even if I
> call an other function. The current time stop at the begening of a
> procedure. How can i get the OS time in an informix function ???
>
>
> --
> Posted via [url]http://dbforums.com[/url]
Alexey Sonkin Guest



Reply With Quote

