Results 1 to 2 of 2

Thread: How do i get the script to return the time?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    Belfast
    Posts
    109

    How do i get the script to return the time?

    Hi, I'm tryoing to make a cgi script that prints the time. I would like it to print the time that is on the system clock of ther server the script is on. Can anyone tell me how to do this? Thanks

  2. #2
    scoutt
    Guest
    Code:
    $getdate = `date +"%D %T %Z"`;
    chop ($getdate);
    
    print  $getdate

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width