summaryrefslogtreecommitdiff
path: root/paramiko/sftp_attr.py
diff options
context:
space:
mode:
Diffstat (limited to 'paramiko/sftp_attr.py')
-rw-r--r--paramiko/sftp_attr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/sftp_attr.py b/paramiko/sftp_attr.py
index a8d3ecf1..eb4dd900 100644
--- a/paramiko/sftp_attr.py
+++ b/paramiko/sftp_attr.py
@@ -205,8 +205,8 @@ class SFTPAttributes:
datestr = "(unknown date)"
else:
time_tuple = time.localtime(self.st_mtime)
- if abs(time.time() - self.st_mtime) > 15552000:
- # (15552000 = 6 months)
+ if abs(time.time() - self.st_mtime) > 15_552_000:
+ # (15,552,000s = 6 months)
datestr = time.strftime("%d %b %Y", time_tuple)
else:
datestr = time.strftime("%d %b %H:%M", time_tuple)