mktime
Using is_dst in mktime() in PHP 5.3 (parameter is deprecated)
From 5.3 the is_dst parameter is deprecated in mktime. But I need two previous time in timestamp, one of them with dst and the other without that.[详细]
2023-03-09 15:10 分类:问答PHP strtotime and mktime return different results
I am new to开发者_Go百科 the world of coding as well as php and am confused by why the strtotime and mktime functions return different results e.g.[详细]
2023-03-02 18:07 分类:问答Fetching Results with datetime
I\'m trying to fetch results between two time intervals. I\'ve done this before with another web app I bui开发者_开发百科lt using just Y-m-d, but now having problems with Y-m-d H:i:s. The code is belo[详细]
2023-02-24 02:52 分类:问答i want to date difference in week,month year in php? [duplicate]
This question already has answers here: How to calculate the difference between two dates using PHP? (34 answers)[详细]
2023-02-19 12:40 分类:问答Python: time.mktime returning the same value for different dates
I was working on some python scripts to calculate the time spent since an older date, and surprisingly got a negative result. I realized that the problem may be in the time.mktime function. Let\'s get[详细]
2023-02-19 03:33 分类:问答Linux-x64 glibc: Why does Feb 1 come before Jan 31?
When you call mktime(), Feb 1 seems to come before Jan 31.Why is this? Am I doing something wrong or is this a bug in glibc?[详细]
2023-02-08 09:05 分类:问答problem with mktime and timezone
I would like to display the time stamp of 00:00:00 1 Nov 2010 with the code as below $day = mktime(0,0,0,11,1,2010);[详细]
2023-01-26 22:12 分类:问答how to reverse mktime() function in PHP?
I am using following to convert time to integer mktime(hour,minute,second,month,day,yea开发者_运维问答r)[详细]
2023-01-23 07:09 分类:问答Finding days between 2 unix timestamps in php
Hay, i have a database holding events. There are 2 fields \'start\' and \'end\', these contain timestamps. When an admin enters these dates, they only have the ability to set the day,month,year. So we[详细]
2023-01-22 22:31 分类:问答How can I use PHP to list all the dates in a year?
I\'m trying to use PHP to create a script that searches all the days between now and one year\'s time and lists all the dates for Fridays and Saturdays. I was trying to use PHP\'s date() and mktime()[详细]
2023-01-22 15:44 分类:问答