Top "Mktime" questions

mktime is a function that returns the time since the UNIX epoch from a given date and time.

argument must be 9-item sequence, not datetime.datetime

Web app is breaking on the following line; start_time = int(time.mktime(start)) * 1000 The error is a TypeError - …

python time mktime python-datetime
Why is mktime() changing the year day of my tm struct?

I read in two strings with a Year, the Julian Day (year day), hour, minute, and an observation. I pull …

c++ mktime
Populate drop down form with months and year php

I am trying to create two drop downs with HTML and PHP. The first is an auto submit that sends …

php html date strtotime mktime
Curve Fitting to a time series in the format 'datetime'?

Here is my problem: polyfit does not take datetime values, so that I converted datetime with mktime producing the polynomial …

python datetime curve-fitting mktime axis-labels
php time() vs mktime() for current timestamp

Are there any differences between using functions time() and mktime() with default parameters to obtain current timestamp?

php time mktime
Calculate date for Monday of current week

Goal: If current day of week is any day other than Monday, display the date of the Monday of the …

php date mktime
convert mysql timestamp to mktime

I have the following MySQL timestamp: 2009-06-23 16:21:48 How can I convert it to a format like mktime()?

php mysql timestamp mktime
php - mktime or strtotime?

I'm trying to convert 2010-02 to February, 2010. But, I keep getting December, 1969 I've tried using mktime, strtotime, and some combination …

php strtotime mktime
Get previous month date range

I need help getting the previous months full date range in the following format: Y-m-d I have successfully been able …

php datetime date strtotime mktime
Confusing behaviour of mktime() function : increasing tm_hour count by one

I am executing below code. int main() { struct tm storage={0,0,0,0,0,0,0,0,0}; char *p = NULL; p = (char *)strptime("2012-08-25 12:23:12","%Y-%m-%…

c++ dst mktime