Re: strange delay in date?

2002-04-11 Thread Marcos Lorenzo de Santiago

On Thu, 11 Apr 2002, Markus Hoenicka wrote:

 > The date manpage tells you that date uses the environment variable
 > TZ. Set this variable in your /etc/profile or ~/.bashrc to the correct
 > value.
 > 
 > regards,
 > Markus

Thanx. I just answered to myself just before reading your mail :)

m4c.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: strange delay in date?

2002-04-11 Thread Larry Hall (RFK Partners, Inc)

At 12:51 PM 4/11/2002, Marcos Lorenzo de Santiago wrote:
>If there's documentation that you know over the net just redirect me to
>the page so I can stop bothering! ;)


Well, let's see.  There's documentation at the Cygwin web site (user's guide,
api guide, FAQ, email list archives), there's documentation in /usr/doc and
/usr/doc/Cygwin, and there's documentation all over the web concerning GNU
packages and their setup/configuration.  Seems like that should be an 
adequate pointer to get you started.

These are all great places to review for any question before posting too.

Hope that helps,


Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: strange delay in date?

2002-04-11 Thread Marcos Lorenzo de Santiago

On Thu, 11 Apr 2002, Marcos Lorenzo de Santiago wrote:

 > On Thu, 11 Apr 2002, Markus Hoenicka wrote:
 > 
 >  > Upon re-reading my reply I noticed that it was too terse. date shows
 >  > UTC in your case because you did not set up your timezone
 >  > correctly. If you do, date will show your local time, date -u will
 >  > show UTC.
 >  > 
 >  > In my case, I set TZ to CST6CDT, which means time zone is CST, I'm 6 h
 >  > west of UTC, and my daylight savings time zone is CDT
 >  > 
 >  > regards,
 >  > Markus
 > 
 > Thanks a lot now I know what is the problem, but I don't know how to
 > resolve it. I know how to do it in linux, but not in cygwin (arrgh! :)

OK! I answer myself: setting the TZ variable:

$ export TZ=CST-1CDT; date
Thu Apr 11 18:55:26  2002
$ date -u
Thu Apr 11 16:55:29  2002

How can I set this variable as the default? In /etc/profile?... let's
try... yes! it works although I don't get bash hour prompt to work:

17:01:07 ~$ date
Thu Apr 11 19:01:10  2002

there's still a delay of 2 hours between the two dates. Maybe there's any
other configuration for this...

And now I want this command (date) to work from cmd.exe too (not only from
bash.exe): I guessed that probably setting a variable TZ to the timezone
in cmd.exe would work and so it does!:

C:\>c:\cygwin\bin\date
Thu Apr 11 17:00:15  2002

C:\>set TZ=CST-1CDT

C:\>c:\cygwin\bin\date
Thu Apr 11 19:00:35  2002


That's it!

m4c.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: strange delay in date?

2002-04-11 Thread Markus Hoenicka

The date manpage tells you that date uses the environment variable
TZ. Set this variable in your /etc/profile or ~/.bashrc to the correct
value.

regards,
Markus

Marcos Lorenzo de Santiago writes:
 > Thanks a lot now I know what is the problem, but I don't know how to
 > resolve it. I know how to do it in linux, but not in cygwin (arrgh! :)
 > 
 > In linux you just had to link /etc/localtime to
 > /ush/share/zoneinfo/wherever_you_are and that's it, but in cygwin there's
 > no /usr/share/zoneinfo folder. I looked manpages but I found nothing.

-- 
Markus Hoenicka, PhD
UT Houston Medical School
Dept. of Integrative Biology and Pharmacology
6431 Fannin MSB4.114
Houston, TX 77030
(713) 500-6313, -7477
(713) 500-7444 (fax)
[EMAIL PROTECTED]
http://ourworld.compuserve.com/homepages/hoenicka_markus/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: strange delay in date?

2002-04-11 Thread Marcos Lorenzo de Santiago

On Thu, 11 Apr 2002, Markus Hoenicka wrote:

 > Upon re-reading my reply I noticed that it was too terse. date shows
 > UTC in your case because you did not set up your timezone
 > correctly. If you do, date will show your local time, date -u will
 > show UTC.
 > 
 > In my case, I set TZ to CST6CDT, which means time zone is CST, I'm 6 h
 > west of UTC, and my daylight savings time zone is CDT
 > 
 > regards,
 > Markus

Thanks a lot now I know what is the problem, but I don't know how to
resolve it. I know how to do it in linux, but not in cygwin (arrgh! :)

In linux you just had to link /etc/localtime to
/ush/share/zoneinfo/wherever_you_are and that's it, but in cygwin there's
no /usr/share/zoneinfo folder. I looked manpages but I found nothing.

Another question: how can I add inetd the inetd service to my winbox list
of services? and how can I get my crond running? 

If there's documentation that you know over the net just redirect me to
the page so I can stop bothering! ;)


rgrds,
m4c.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: strange delay in date?

2002-04-11 Thread Markus Hoenicka

Upon re-reading my reply I noticed that it was too terse. date shows
UTC in your case because you did not set up your timezone
correctly. If you do, date will show your local time, date -u will
show UTC.

In my case, I set TZ to CST6CDT, which means time zone is CST, I'm 6 h
west of UTC, and my daylight savings time zone is CDT

regards,
Markus

Marcos Lorenzo de Santiago writes:
 > Well, now the question is: how can I get *MY* localtime??

-- 
Markus Hoenicka, PhD
UT Houston Medical School
Dept. of Integrative Biology and Pharmacology
6431 Fannin MSB4.114
Houston, TX 77030
(713) 500-6313, -7477
(713) 500-7444 (fax)
[EMAIL PROTECTED]
http://ourworld.compuserve.com/homepages/hoenicka_markus/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: strange delay in date?

2002-04-11 Thread Marcos Lorenzo de Santiago

On Thu, 11 Apr 2002, Markus Hoenicka wrote:

 > date returns UTC, time returns your local time.
 > 
 > regards,
 > Markus

Well, now the question is: how can I get *MY* localtime??


thx in advance

m4c.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/