11 lines
282 B
Python
11 lines
282 B
Python
|
"""Contains shared constants and functions"""
|
||
|
|
||
|
import requests
|
||
|
|
||
|
CSC_MIRROR = "http://mirror.csclub.uwaterloo.ca/"
|
||
|
|
||
|
def get_sec(timestamp_file_url):
|
||
|
"""Get seconds since the Epoch from timestamp file"""
|
||
|
sec_str = requests.get(timestamp_file_url).text
|
||
|
return int(sec_str)
|