Re: Discrepancy on time reported by system and localtime

2005-01-14 Thread M. Smith
At 07:55 PM 1/13/2005, you wrote: Allegakoen, Justin Devanandan wrote: ---8 ^Z on windoze ---8 ^D or ^Z I still have to hit enter after it. Unless theres a subtle difference that I'm missing. True - you do have to hit CR (unlike UNIX's ^D). Anyway, just to

Re: Discrepancy on time reported by system and localtime

2005-01-13 Thread $Bill Luebkert
Allegakoen, Justin Devanandan wrote: On one of my WinXP machines I notice the following: c:\Perl\Programsperl system(date /t); system(time /t); print scalar localtime; ^D ^Z on windoze I have to use an explicit shell call: system cmd /C date /t; system cmd /C time /t; print scalar

RE: Discrepancy on time reported by system and localtime

2005-01-13 Thread Allegakoen, Justin Devanandan
---8 ^Z on windoze ---8 ^D or ^Z I still have to hit enter after it. Unless theres a subtle difference that I'm missing. Anyway, just to reiterate my point, because James sent me a reply offline as well:- c:\perl\Programsperl system cmd /C date /t; system cmd /C

Re: Discrepancy on time reported by system and localtime

2005-01-13 Thread $Bill Luebkert
Allegakoen, Justin Devanandan wrote: ---8 ^Z on windoze ---8 ^D or ^Z I still have to hit enter after it. Unless theres a subtle difference that I'm missing. True - you do have to hit CR (unlike UNIX's ^D). Anyway, just to reiterate my point, because James

Discrepancy on time reported by system and localtime

2005-01-12 Thread Allegakoen, Justin Devanandan
On one of my WinXP machines I notice the following: c:\Perl\Programsperl system(date /t); system(time /t); print scalar localtime; ^D Thu 01/13/2005 03:26 PM Thu Jan 13 07:26:44 2005 c:\Perl\Programs Im in a GMT +8hrs timezone and the system time reports that correctly, but localtime seems to be