15 lines
245 B
Python
15 lines
245 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from __future__ import annotations
|
|
|
|
from datetime import datetime
|
|
|
|
import pytz
|
|
|
|
BEIJING_TZ = pytz.timezone("Asia/Shanghai")
|
|
|
|
|
|
def get_beijing_now() -> datetime:
|
|
return datetime.now(BEIJING_TZ)
|
|
|