Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
74ac1a3c
Commit
74ac1a3c
authored
Mar 12, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
datetime.strftime()
parent
99058d3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
from_cpython/Include/pyconfig.h
from_cpython/Include/pyconfig.h
+1
-0
test/tests/datetime_test.py
test/tests/datetime_test.py
+2
-0
No files found.
from_cpython/Include/pyconfig.h
View file @
74ac1a3c
...
@@ -54,6 +54,7 @@
...
@@ -54,6 +54,7 @@
#define HAVE_SOCKADDR_STORAGE 1
#define HAVE_SOCKADDR_STORAGE 1
#define HAVE_SOCKETPAIR 1
#define HAVE_SOCKETPAIR 1
#define HAVE_GETPEERNAME 1
#define HAVE_GETPEERNAME 1
#define HAVE_STRFTIME 1
#define PY_FORMAT_LONG_LONG "ll"
#define PY_FORMAT_LONG_LONG "ll"
#define PY_FORMAT_SIZE_T "z"
#define PY_FORMAT_SIZE_T "z"
...
...
test/tests/datetime_test.py
View file @
74ac1a3c
...
@@ -9,3 +9,5 @@ print str(datetime.timedelta(0))
...
@@ -9,3 +9,5 @@ print str(datetime.timedelta(0))
# now() works on both the class and on its instances:
# now() works on both the class and on its instances:
datetime
.
datetime
.
now
().
now
()
datetime
.
datetime
.
now
().
now
()
print
datetime
.
datetime
(
1924
,
2
,
3
).
strftime
(
"%B %d, %Y - %X"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment