13 lines
501 B
Python
13 lines
501 B
Python
|
|
"""Optional recording-time evidence; original local timestamps remain intact."""
|
||
|
|
import os
|
||
|
|
|
||
|
|
def recording_time():
|
||
|
|
if not os.environ.get('INTELLIGENCE_RADAR_CLOCK_TRUST_FILE'):
|
||
|
|
return {}
|
||
|
|
try:
|
||
|
|
from railiance_clock.attribution import from_environment
|
||
|
|
result = from_environment('INTELLIGENCE_RADAR_CLOCK_TRUST_FILE')
|
||
|
|
return result
|
||
|
|
except (ImportError, OSError, ValueError):
|
||
|
|
return {'railiance_time': {'status': 'unavailable', 'kind': 'recording_time'}}
|