MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / get_build_time

Function get_build_time

archivebox/config.py:416–422  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

414 return None
415
416def get_build_time(config) -> str:
417 if config['IN_DOCKER']:
418 docker_build_end_time = Path('/VERSION.txt').read_text().rsplit('BUILD_END_TIME=')[-1].split('\n', 1)[0]
419 return docker_build_end_time
420
421 src_last_modified_unix_timestamp = (config['PACKAGE_DIR'] / 'config.py').stat().st_mtime
422 return datetime.fromtimestamp(src_last_modified_unix_timestamp).strftime('%Y-%m-%d %H:%M:%S %s')
423
424def get_versions_available_on_github(config):
425 """

Callers 1

config.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected