Show More
@@ -997,10 +997,11 b' def filechunkiter(f, size=65536, limit=N' | |||
|
997 | 997 | limit -= len(s) |
|
998 | 998 | yield s |
|
999 | 999 | |
|
1000 | def makedate(): | |
|
1001 |
'''Return the current time as a (unixtime, |
|
|
1002 | the local timezone.''' | |
|
1003 |
timestamp |
|
|
1000 | def makedate(timestamp=None): | |
|
1001 | '''Return a unix timestamp (or the current time) as a (unixtime, | |
|
1002 | offset) tuple based off the local timezone.''' | |
|
1003 | if timestamp is None: | |
|
1004 | timestamp = time.time() | |
|
1004 | 1005 | if timestamp < 0: |
|
1005 | 1006 | hint = _("check your clock") |
|
1006 | 1007 | raise Abort(_("negative timestamp: %d") % timestamp, hint=hint) |
General Comments 0
You need to be logged in to leave comments.
Login now