Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Time

Status
Not open for further replies.

Jblain22

Programmer
Jul 10, 2001
4
0
0
US
I am sorting through a few pages of Perl-cgi and am curious about a section of date-time code. I f this code was used to create a flatfile would it be created at 12:00 am

$mday = $mday - 2;
$date = "\"$month/$mday/$year\"";
 
You just "create" flat files, and they get the current date/time stamped on them by the system - you don't actually get to stamp your own date/time on them.

I'm not sure what your question is exactly - there must be some code above the code you included that populates the date variables. If you still have a question, post the code that populates those variables.

HTH.
Hardy Merrill
Mission Critical Linux, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top