You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
282 B
11 lines
282 B
2 years ago
|
"""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)
|