Can anybody figure out how the python code below works and give me a possible way to port it to Objective-C (iOS) to work in my own project?
month_id = calendar.timegm(datetime(year, month, 1, hour, 0, 0).timetuple()) * 1000
Thanks a ton!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
calendar.timegm converts the given time to time in seconds since epoch of 1970. More information at http://docs.python.org/3/library/calendar.html?highlight=calendar.timegm#calendar.timegm