Yes, it's an NT issue!
I found a lib "Date::Manip" that fixes this problem:

use Date::Manip;
$NOW = &UnixDate("today","%m%d%y");
print "$NOW";
==> 051000

I saw your output "051100" ! you guys a day a head of us in Oregon, USA

Thanks to you all
-Fauzi

-----Original Message-----
From: Hirosi Taguti [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 10, 2000 5:22 PM
To: Perl-Win32-Users Mailing List
Subject: Re: date on NT system


> I'm running perl under NT using bash shell!

So interesting! I'm using bash in HP-UX, not knowing NT version.

> Why this does not work?

But before asking, "date '+%m%d%y'" can return "051100" correctly?
If not, it is a matter of bash.

If yes, ... I can do it by my HP-UX.

> +++++++++++++++++++++++++++++
> $NOW = `date '+%m%d%y'`;
> 
> print "$NOW";
> ++++++++++++++++++++++++++++++
> I get an error: the system cannot accept the date entered!

--
[EMAIL PROTECTED]



---
You are currently subscribed to perl-win32-users as: [EMAIL PROTECTED]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to