Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
gitdeem
/
dt
like
0
Paused
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
dt
/
app
/
utils
/
task_utils.py
gitdeem
Upload 96 files
4e9efe9
verified
over 1 year ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
183 Bytes
# utils/task_utils.py
import
datetime
def
generate_task_no
():
"""生成任务编号[^3]"""
now = datetime.datetime.now()
return
f"T
{now.strftime(
'%Y%m%d%H%M%S'
)}
"