Count a dated CHANGELOG heading as cut without a tag, read only regular files in rule-hook, stamp asks in ISO UTC, give workers the reading rule, and record the 200k window's measurement
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import calendar
|
||||
import time
|
||||
|
||||
STAMP = "%Y-%m-%dT%H:%M:%SZ"
|
||||
@@ -6,3 +7,8 @@ STAMPED = r"\d{4}-\d\d-\d\dT\d\d:\d\d:\d\dZ"
|
||||
|
||||
def utc(at: float) -> str:
|
||||
return time.strftime(STAMP, time.gmtime(at))
|
||||
|
||||
|
||||
def seconds(stamp: str) -> int:
|
||||
"""The seconds since the epoch that stamp, as utc writes it, names; ValueError where it is no such stamp."""
|
||||
return calendar.timegm(time.strptime(stamp, STAMP))
|
||||
|
||||
Reference in New Issue
Block a user