I am timestamping some files with php and I am using the date() function. I have the variable $date = date("Ymd Hms"); My timestamp is exactly a half hour off. Anyone know why? Thanks,
cameraman
8:55 pm on Jun 19, 2008 (gmt 0)
The format character for minutes is 'i', so you want Ymd His.
andrewsmd
4:34 pm on Jun 20, 2008 (gmt 0)
Thanks, I must be an idiot.
cameraman
5:35 pm on Jun 20, 2008 (gmt 0)
Not at all, the bloody things just do what you tell them to do instead of what you want them to do, which would simplify things considerably (course we'd all have to find new gigs then).
andrewsmd
7:53 pm on Jun 20, 2008 (gmt 0)
Yea I suppose it is never a good idea to try and program late in the day. My brain doesn't function well after about 5 pm unless there is a beer in my hand.