diff options
| author | Tom Christie | 2013-03-06 12:19:39 +0000 |
|---|---|---|
| committer | Tom Christie | 2013-03-06 12:19:39 +0000 |
| commit | 1106596c80218569a56ff5ea04d759e3d0c541dd (patch) | |
| tree | abef8464aad8d551113243b430b436ce4449fee2 /rest_framework/utils/dates.py | |
| parent | 4f7b028a0a983b79ebca63b2ba48ce97e7a06175 (diff) | |
| download | django-rest-framework-1106596c80218569a56ff5ea04d759e3d0c541dd.tar.bz2 | |
Clean ups to datetime formatting
Diffstat (limited to 'rest_framework/utils/dates.py')
| -rw-r--r-- | rest_framework/utils/dates.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/rest_framework/utils/dates.py b/rest_framework/utils/dates.py deleted file mode 100644 index f094f72d..00000000 --- a/rest_framework/utils/dates.py +++ /dev/null @@ -1,14 +0,0 @@ -def get_readable_date_format(date_format): - mapping = [("%Y", "YYYY"), - ("%y", "YY"), - ("%m", "MM"), - ("%b", "[Jan through Dec]"), - ("%B", "[January through December]"), - ("%d", "DD"), - ("%H", "HH"), - ("%M", "MM"), - ("%S", "SS"), - ("%f", "uuuuuu")] - for k, v in mapping: - date_format = date_format.replace(k, v) - return date_format
\ No newline at end of file |
