(self)
| 369 | |
| 370 | @property |
| 371 | def time(self): |
| 372 | if self.version == 6: |
| 373 | # time_hi (32) | time_mid (16) | ver (4) | time_lo (12) | ... (64) |
| 374 | time_hi = self.int >> 96 |
| 375 | time_lo = (self.int >> 64) & 0x0fff |
| 376 | return time_hi << 28 | (self.time_mid << 12) | time_lo |
| 377 | elif self.version == 7: |
| 378 | # unix_ts_ms (48) | ... (80) |
| 379 | return self.int >> 80 |
| 380 | else: |
| 381 | # time_lo (32) | time_mid (16) | ver (4) | time_hi (12) | ... (64) |
| 382 | # |
| 383 | # For compatibility purposes, we do not warn or raise when the |
| 384 | # version is not 1 (timestamp is irrelevant to other versions). |
| 385 | time_hi = (self.int >> 64) & 0x0fff |
| 386 | time_lo = self.int >> 96 |
| 387 | return time_hi << 48 | (self.time_mid << 32) | time_lo |
| 388 | |
| 389 | @property |
| 390 | def clock_seq(self): |
no outgoing calls