Spaces:
Paused
Paused
Download app/database_user.py from superxu520/sync_stock: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/superxu520/sync_stock/resolve/main/app/database_user.py
- Command line
-
hf download hf://spaces/superxu520/sync_stock/app/database_user.py
-
curl -L -o database_user.py https://huggingface.co/spaces/superxu520/sync_stock/resolve/main/app/database_user.py
309 Bytes
| """ | |
| 用户数据库工具函数 - Sync Space 精简版 | |
| 只包含 Sync Space 需要的函数 | |
| """ | |
| from datetime import datetime, timedelta, timezone | |
| def get_beijing_time() -> datetime: | |
| """获取北京时间 (UTC+8)""" | |
| return datetime.now(timezone(timedelta(hours=8))).replace(tzinfo=None) | |