MCPcopy Index your code
hub / github.com/clips/pattern / __extract_time

Function __extract_time

pattern/web/feed/feedparser.py:3397–3410  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

3395 return year, month, day
3396
3397 def __extract_time(m):
3398 if not m:
3399 return 0, 0, 0
3400 hours = m.group('hours')
3401 if not hours:
3402 return 0, 0, 0
3403 hours = int(hours)
3404 minutes = int(m.group('minutes'))
3405 seconds = m.group('seconds')
3406 if seconds:
3407 seconds = int(seconds)
3408 else:
3409 seconds = 0
3410 return hours, minutes, seconds
3411
3412 def __extract_tzd(m):
3413 '''Return the Time Zone Designator as an offset in seconds from UTC.'''

Callers 1

_parse_date_w3dtfFunction · 0.85

Calls 1

groupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…