[nycphp-talk] "net" as timestamp?
Rahmin Pavlovic
rahmin at insite-out.com
Wed Sep 12 05:39:30 EDT 2007
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?
More information about the talk
mailing list