About 230,000 results
Open links in new tab
  1. Convert String to Time Python - Stack Overflow

    Apr 6, 2015 · Tested and functinal in python 2.7.5 and 3.4.1 Edit: Zero answers when I started typing this, 6 answers by time of post, sorry about that! Edit #2: datetime.strptime functions …

  2. Convert string into datetime.time object - Stack Overflow

    Jan 12, 2013 · Given the string in this format "HH:MM", for example "03:55", that represents 3 hours and 55 minutes. I want to convert it to datetime.time object for easier manipulation. …

  3. python - Converting Epoch time into the datetime - Stack Overflow

    Sep 13, 2012 · The ctime(), gmtime() and localtime() functions all take an argument of data type time_t which represents calendar time. When inter- preted as an absolute time value, it …

  4. Convert string date to timestamp in Python - Stack Overflow

    Jan 12, 2011 · date object represents midnight in local time import time timestamp3 = time.mktime(local_date.timetuple()) assert timestamp3 != timestamp1 or (time.gmtime() == …

  5. Python/Pandas convert string to time only - Stack Overflow

    Jun 14, 2016 · Python/Pandas convert string to time only Asked 9 years, 4 months ago Modified 2 years, 4 months ago Viewed 118k times

  6. How to convert string to datetime in python - Stack Overflow

    Mar 7, 2011 · I have a date string in following format 2011-03-07 how to convert this to datetime in python?

  7. datetime - Python Timezone conversion - Stack Overflow

    Jun 12, 2012 · To convert a time in one timezone to another timezone in Python, you could use datetime.astimezone (): so, below code is to convert the local time to other time zone.

  8. Convert DataFrame column type from string to datetime

    Jun 16, 2013 · How can I convert a DataFrame column of strings (in dd/mm/yyyy format) to datetime dtype?

  9. python - Converting unix timestamp string to readable date

    I have a string representing a unix timestamp (i.e. "1284101485") in Python, and I'd like to convert it to a readable date. When I use time.strftime, I get a TypeError: >>>import...

  10. How do I translate an ISO 8601 datetime string into a Python …

    I'm getting a datetime string in a format like "2009-05-28T16:15:00" (this is ISO 8601, I believe). One hackish option seems to be to parse the string using time.strptime and passing the first six