Found a weird one today:

echo date("Y-m-d H:i:s T", time()) . "\n";
echo date("Y-m-d H:i:s T", strtotime('net surfing')) . "\n";
echo date("Y-m-d H:i:s T", strtotime('surfing net')) . "\n";

Echoes:

2007-09-12 05:29:41 EDT
2007-09-12 01:09:41 EDT
1969-12-31 19:00:00 EST

Why does "net" return 4hr + 20min ago, and why do I feel like I already
lived it?

More importantly, does anyone know a list of reserved date terms I can parse
out?


_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to