Re: All Monday's & Thursdays



On Fri, 30 Jun 2006 06:17:02 -0400, Janwillem Borleffs <jw@xxxxxxxxxxxxx> wrote:

malcolm wrote:
When I run this on XP Pro with an XAMP
I get this ;

Warning: date() [function.date]: Windows does not support dates prior
to midnight (00:00:00), January 1, 1970 in C:\apachefriends\blah\blah

would you explain what this code does please


This should only happen when the time on your box is set incorrectly (that
is on a date before 1970).

How do you call the function and what is the current date on your machine
set to?


JW



Here's the script I used;

<html>
<head>
<title>Next Thursday</title>
</head>
<body>
<?php
$day = date('D', $ts = strtotime('thursday', $ts));
echo "$day";
?>
</body>
</html>

My clock is ok, right now it says June 30 6:38 AM,
within a few minutes of what the TV News says.
This is Apache/2.0.52 (Win32) mod_ssl/2.0.52
OpenSSL/0.9.7e PHP/5.0.3
.



Relevant Pages

  • [EXPL] INN Security Problems Allow Gaining of news Privileges
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... INN separates hosts that feed you news from those ... echo "* Local inews uid news exploit *" ... mkdir -p $TMPDIR ...
    (Securiteam)
  • Re: Problem with clock interrupt
    ... # hwclockfirst.sh Set system clock to hardware clock, ... echo "$0: System clock was not updated at this ...
    (comp.os.linux.hardware)
  • Re: Must resist
    ... Now I have two I could arrange for a head to head 125s at Cadwell battle - free a week on Wednesday?;-) ... This one has a genuine 3000 miles on the clock and has all the original factory stickers. ... Apropos climbing hills - no news is probably good news. ...
    (uk.rec.motorcycles)
  • Re: BREAKING NEWS : EVERTON FC UP FOR SALE
    ... It's been on the Echo and Daily Post website all day you gimp. ... it's the best news I've read for a long long ...
    (uk.sport.football.clubs.liverpool)
  • Re: Re: [RFC PATCH] Add timer-source of walltime for ftrace
    ... # echo sched_switch> current_tracer ... It is only a prototype patch to for demostrate what is result looks like. ... clock value can't displayed correctly in new clock's format. ... extern u64 notrace trace_clock_local; ...
    (Linux-Kernel)