Top "Strptime" questions

`strptime` reads the time from the string s using the timeformat specifiers and converts it into seconds since the year 2000.

unconverted data remains: .387000 in Python

I have a datetime that is a string I read from a text file. I want to trim the extra …

python strftime strptime
Datetime strptime in Python pandas : what's wrong?

import datetime as datetime datetime.strptime('2013-01-01 09:10:12', '%Y-%m-%d %H:%M:%S') produces AttributeError Traceback (…

python datetime pandas strptime
How to convert timestamp into string in Python

I have a problem with the following code. I get an error "strptime() argument 1 must be str, not Timestamp" I …

python pandas strptime
unknown timezone name in R strptime/as.POSIXct

Where can I find a list of all legal time names for R function as.POSIXct? as.POSIXct("1970-01-01",…

r timezone strptime
How to format date string via multiple formats in python

I have three date formats: YYYY-MM-DD, DD.MM.YYYY, DD/MM/YYYY. Is it possible to validate and parse strings …

python date datetime format strptime
Formatting date times provided as strings in Django

In my Django application I get times from a webservice, provided as a string, that I use in my templates: {{…

python django date time strptime
using strptime converting string to time but getting garbage

I have a problem with using strptime() function in c++. I found a piece of code in stackoverflow like below …

c++ strptime
Python: AttributeError: 'str' object has no attribute 'datetime'

I am using this code: def calcDateDifferenceInMinutes(end_date,start_date): fmt = '%Y-%m-%d %H:%M:%S' start_…

python strptime
Strptime with Timezone

I have a String which I parse with DateTime.strptime. The Timezone of the Date in the String is CET …

ruby-on-rails ruby timezone datetimeoffset strptime
Extracting time from character string with strptime() in R, returning NA

I am trying to extract out the time from a character string in R and can't stop getting NA as …

regex r date time strptime