Tools
time_t
Convert a timestamp to an ISO-8601 string representation.
Usage
python3 -m pymisclib.time_t -f ms 17345594849999 1234567890123 0x12345
- –format | -f <fmt
Timestamp format. One of: s, ms, us, or .net.
- timestamp [timestamp …]
A series of timestamps. These can be decimal (integer or floating-point) numbers or binary, octal, or hexadecimal (integer) numbers. Non-decimals must be prefixed with their radix (0b, 0o, 0x).
Example
└▪ python3 -m pymisclib.time_t -f s 17345594849 17345594849.555 1234567890 0x1234567 asdada
ERROR: asdada is not a number: unable to convert asdada to a number
17345594849 → 2519-08-30T04:47:29+0000
17345594849.555 → 2519-08-30T04:47:30.110+0000
1234567890 → 2009-02-13T23:31:30+0000
19088743 → 1970-08-09T22:25:43+0000