Skip to content

Commit

Permalink
Update Item.__get_time_last_updated docstring to reflect ISO 8601 formt
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jun 29, 2021
1 parent ed5f48e commit 0e8b1dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webqueue2api/parser/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ def __generate_json_data(self) -> dict:
return json_data

def __get_time_last_updated(self) -> str:
"""Returns last modified time of item reported by the filesystem in mm-dd-yy hh:mm am/pm format.
"""Returns last modified time as reported by the filesystem in ISO 8601 format.
Example:
07-23-20 10:34 AM
2020-07-23T10:34:00-04:00
Returns:
str: last modified time of item reported by the filesystem in mm-dd-yy hh:mm am/pm format.
str: Last modified time as reported by the filesystem in ISO 8601 format.
"""
unix_time = os.path.getmtime(self.path)
formatted_time = time.strftime('%m-%d-%y %I:%M %p', time.localtime(unix_time))
Expand Down

0 comments on commit 0e8b1dc

Please sign in to comment.