MCPcopy Index your code
hub / github.com/python/cpython / time

Method time

Lib/uuid.py:371–387  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers 15

_mesgMethod · 0.45
_logMethod · 0.45
_init_write_gzMethod · 0.45
_write_gzip_headerMethod · 0.45
compressFunction · 0.45
_print_debugMethod · 0.45
cleanMethod · 0.45
_create_tmpMethod · 0.45
_refreshMethod · 0.45
__init__Method · 0.45
_create_temporaryFunction · 0.45
deccheck.pyFile · 0.45

Calls

no outgoing calls

Tested by 2

test_calc_piFunction · 0.36
test_factorialFunction · 0.36