php - Converting and Comparing Date -
I have a problem that when I give a date of strtotime The value that is not equal is what I have in the database Example: In the database I have this value which is equal to this date 24/04/2014 So what I did Is Who gives me 1398297600 I do not understand, the difference between the two Why should they have the same value right while they? What's wrong here Consider the following: The timestamp is still different when you eat for hours, minutes and seconds. I am in the Chicago timezone, at what time are you in the field? Or more importantly, is your database running in the same timezilla as your PHP server? < p> 1398308880
$ time = '1398308880' ; Echo date ("Y-M-DH: I: S", $ time); // Output 2014-04-23 22:08:00 Echo '& lt; Br / & gt; '; Echo amtimes (22, 8, 0, 4, 24, 2014); // output 1398395280
Comments
Post a Comment