#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    5
    Rep Power
    0

    Cool Setting the date on Windows


    I'm struggling to set the date on Windows. I haven't come across a Perl module that can do it - is there one you know of?

    I've been trying to use the date command in Windows. I'm also using the time command to set the time and this works fine.

    Here's an example of how it doesn't work;

    1. Calling a batch file with a single command in works.
    2. Calling perl from the command line with the same line fails.

    Code:
    Y:\SourceCode\Scripts\NTPSync>date.bat
    
    Y:\SourceCode\Scripts\NTPSync>date 1-1-1999
    
    Y:\SourceCode\Scripts\NTPSync>perl -e "`date 1-1-1999`"
    date: invalid date `1-1-1999'
    
    Y:\SourceCode\Scripts\NTPSync>
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    82
    Rep Power
    3
    Hi winblows,
    What do you really need?
    What does it mean "I'm struggling to set the date on Windows"?
    Thanks, testerV
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    5
    Rep Power
    0

    Wink


    I guess you don't have a good grasp on the english language.

    I've found a workaround, I had to call the command prompt and pass in the parameter like this instead

    Code:
    cmd /c date dd-mm-yyyy
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    cheap wholesale e cigarette


    Originally Posted by winblows
    I'm struggling to set the date on Windows. I haven't come across a Perl module that can do it - is there one you know of? cheap wholesale e cigarettee cigarette
    I've been trying to use the date command in Windows. I'm also using the time command to set the time and this works fine.Place the key to your vehicle in the ignition and power on the vehicle. You do not need to start up the ignition, but at least turn the key far enough to start up your radio and power up the windows.


    Here's an example of how it doesn't work;

    1. Calling a batch file with a single command in works.
    2. Calling perl from the command line with the same line fails.

    Code:
    Y:\SourceCode\Scripts\NTPSync>date.bat
    
    Y:\SourceCode\Scripts\NTPSync>date 1-1-1999
    
    Y:\SourceCode\Scripts\NTPSync>perl -e "`date 1-1-1999`"
    date: invalid date `1-1-1999'
    
    Y:\SourceCode\Scripts\NTPSync>
    Place the key to your vehicle in the ignition and power on the vehicle. You do not need to start up the ignition, but at least turn the key far enough to start up your radio and power up the windows.

IMN logo majestic logo threadwatch logo seochat tools logo