Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: filters/humanize_date.py

Issue 29334171: Issue 3410 - Added date sort / format for press releases (Closed)
Patch Set: Fixed import Created Feb. 4, 2016, 11:12 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « filters/datesort.py ('k') | filters/teamsort.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 from datetime import datetime
2
3 def humanize_date(date):
4 return datetime.strftime(
5 datetime.strptime(date, "%Y-%m-%d"),
6 "%B %d, %Y")
OLDNEW
« no previous file with comments | « filters/datesort.py ('k') | filters/teamsort.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld