OXIESEC PANEL
- Current Dir:
/
/
snap
/
certbot
/
4737
/
lib
/
python3.12
/
site-packages
/
pyrfc3339
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/12/2025 06:19:50 PM
rwxr-xr-x
📄
__init__.py
658 bytes
06/12/2025 06:19:37 PM
rw-r--r--
📁
__pycache__
-
06/12/2025 06:19:48 PM
rwxr-xr-x
📄
generator.py
2.23 KB
06/12/2025 06:19:37 PM
rw-r--r--
📄
parser.py
3.48 KB
06/12/2025 06:19:37 PM
rw-r--r--
📄
utils.py
527 bytes
06/12/2025 06:19:37 PM
rw-r--r--
Editing: utils.py
Close
def format_timezone(utcoffset): """ Return a string representing the timezone offset. Remaining seconds are rounded to the nearest minute. >>> format_timezone(3600) '+01:00' >>> format_timezone(5400) '+01:30' >>> format_timezone(-28800) '-08:00' """ hours, seconds = divmod(abs(utcoffset), 3600) minutes = round(float(seconds) / 60) if utcoffset >= 0: sign = "+" else: sign = "-" return "{0}{1:02d}:{2:02d}".format(sign, int(hours), int(minutes))