Revision 26a72a48 lib/cli.py
b/lib/cli.py | ||
---|---|---|
2986 | 2986 |
""" |
2987 | 2987 |
if not isinstance(ts, (tuple, list)) or len(ts) != 2: |
2988 | 2988 |
return "?" |
2989 |
sec, usec = ts |
|
2990 |
return time.strftime("%F %T", time.localtime(sec)) + ".%06d" % usec |
|
2989 |
|
|
2990 |
(sec, usecs) = ts |
|
2991 |
return utils.FormatTime(sec, usecs=usecs) |
|
2991 | 2992 |
|
2992 | 2993 |
|
2993 | 2994 |
def ParseTimespec(value): |
Also available in: Unified diff