Commit 74ac1a3c authored by Kevin Modzelewski's avatar Kevin Modzelewski

datetime.strftime()

parent 99058d3d
......@@ -54,6 +54,7 @@
#define HAVE_SOCKADDR_STORAGE 1
#define HAVE_SOCKETPAIR 1
#define HAVE_GETPEERNAME 1
#define HAVE_STRFTIME 1
#define PY_FORMAT_LONG_LONG "ll"
#define PY_FORMAT_SIZE_T "z"
......
......@@ -9,3 +9,5 @@ print str(datetime.timedelta(0))
# now() works on both the class and on its instances:
datetime.datetime.now().now()
print datetime.datetime(1924, 2, 3).strftime("%B %d, %Y - %X")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment