Top "Strftime" questions

`strftime` is a C standard library function to format date and time into a readable form that has also been ported into other programming language standard libraries

YYYY-MM-DD format date in shell script

I tried using $(date) in my bash shell script, however, I want the date in YYYY-MM-DD format. How do I …

bash shell date strftime
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 …

python datetime unix-timestamp strftime
How to change the datetime format in pandas

My dataframe has a DOB column (example format 1/1/2016) which by default gets converted to pandas dtype 'object': DOB object Converting …

python string pandas datetime strftime
Convert python datetime to epoch with strftime

I have a time in UTC from which I want the number of seconds since epoch. I am using strftime …

python datetime utc epoch strftime
Using %f with strftime() in Python to get microseconds

I'm trying to use strftime() to microsecond precision, which seems possible using %f (as stated here). However when I try …

python time strftime
Python strftime - date without leading 0?

When using Python strftime, is there a way to remove the first 0 of the date if it's before the 10th, …

python padding strftime
What exactly does the T and Z mean in timestamp?

I have this timestamp value being return by a web service "2014-09-12T19:34:29Z" I know that it means …

python datetime timestamp strftime rfc3339
Converting a string to a formatted date-time string using Python

I'm trying to convert a string "20091229050936" into "05:09 29 December 2009 (UTC)" >>>import time >>>s = time.strptime("20091229050936", "%…

python datetime time strftime strptime
Ruby strftime: Month without leading zero?

Does Ruby's strftime have a format for the month without a leading zero? I found %e for getting the day …

ruby date format strftime
How do you set a strftime with javascript?

I need to custom format dates. In ruby, I would use strftime, or string formatted time, to accomplish this. now = …

javascript date time strftime