Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
chenxuan520
cppnet
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
date
Jump to bottom
github-actions edited this page
Oct 18, 2025
·
1 revision
cppnet::Date
static std::string GetNow(std::string format = "%Y/%m/%d %H:%M:%S")
参数:
std::string format
,日期时间的格式字符串。
返回值:
std::string
类型,按照指定格式表示的当前日期和时间。
作用:获取当前的日期和时间,并按照指定的格式转换为字符串返回。
说明:默认格式为"%Y/%m/%d %H:%M:%S"(其中%Y表示四位年份,%m表示两位月份,%d表示两位日期,%H表示24小时制小时,%M表示分钟,%S表示秒)。
Wiki pages
Pages
24
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
address
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
date
cppnet::Date
static std::string GetNow(std::string format = "%Y/%m/%d %H:%M:%S")
Loading
file
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
host
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
http_client
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
http_filter
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
http_header
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
http_method
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
http_req
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
http_resp
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
http_route
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
http_server
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
http_status_code
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
http_version
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
io_multiplexing_base
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
logger
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
README.en
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
socket
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ssl_context
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ssl_socket
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
string
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
tcp_server
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
version
Uh oh!
There was an error while loading.
Please reload this page
.
Show 9 more pages…
Clone this wiki locally
You can’t perform that action at this time.