It seems to me, that we can not use the classic gmtime() and mktime(), because
in /usr/src/rtlinux-3.0/include/posix (directory included by default in rtl.mk)
there is a new "timer.h" which provide the posix function time() but not the other
ones ...
>>> [EMAIL PROTECTED] 07/07/01 17h48 >>>
Hi Silva and all,
Thanks for the info.
I tried using do_gettimeofday but it is giving time in seconds and micro
seconds.
But my purpose is i need current time in some readable format, say,
HH:MM:SS
Similar way i need to get current date in some readable format say,
MM/DD/YY or DD/MM/YY or some other fomat.
Are there any RT Linux functions to retrieve or set the date and time in
the above specified formats.
Thanks,
sitaram
----- Original Message -----
From: Sergio Rui Silva <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 8:16 AM
Subject: Re: [rtl] Hi
> Yes it does. Besides suporting do_gettimeofday and do settimeofday it also
> suports reading and changing a variaty of other clocks like CLOCK_REALTIME
> and CLOCK_GPOS. Beware that RTLinux can use many kinds of clocks and that
if
> you want to read the system time (Linux time) you should use CLOCK_GPOS or
> do_gettimeofday.
>
> Sergio Rui Silva
>
> FEUP
>
> Em Sexta 06 Julho 2001 16:17, escreveste:
>
> > > Hi all,
> >
> > Does RT Linux support functions to set or get current date and time.
> >
> > Thanks,
> > Sitaram
> >
> > SMILE A LOT IT COSTS NOTHING
>
> ----------------------------------------
> Content-Type: text/html; charset="iso-8859-1"; name="Anexo: 1"
> Content-Transfer-Encoding: quoted-printable
> Content-Description:
> ----------------------------------------
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/
----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/