mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-27 01:24:42 +00:00
Merge branch 'master' of github.com:wummel/linkchecker
This commit is contained in:
commit
6d68e00068
1 changed files with 3 additions and 3 deletions
|
|
@ -436,14 +436,14 @@ class Logger (object):
|
|||
self.stats.downloaded_bytes = download_stats
|
||||
|
||||
def format_modified(self, modified, sep=" "):
|
||||
"""Format modification date if it's not None.
|
||||
@param modified: modification date
|
||||
"""Format modification date in UTC if it's not None.
|
||||
@param modified: modification date in UTC
|
||||
@ptype modified: datetime or None
|
||||
@return: formatted date or empty string
|
||||
@rtype: unicode
|
||||
"""
|
||||
if modified is not None:
|
||||
return modified.isoformat(sep)
|
||||
return modified.strftime("%Y-%m-%d{0}%H:%M:%S.%fZ".format(sep))
|
||||
return u""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue