[DGD] ctime() bug or feature?
Michael McKiel
crashnbrn71 at yahoo.ca
Sun Feb 8 15:15:41 CET 2004
I have just been through a run-around trying to figure out why my time.c
get_log_time() function was causing driver.c to crash and burn ;)
It turns out..that when the Day of the month is a single digit, there are
*two* spaces after the month :P
ie:
Today is "Sun Feb 8 09:03:25 2004"
Now how this causes problems...is you can't split the ctime(time()) up via:
explode(ctime(time()), " ")
Wouldn't it be so much nicer if the date was:
"Sun Feb 08 09:03:25 2004", not
"Sun Feb 8 09:03:25 2004"
Buggy or an annoying feature? :)
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list