Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/asio
/ make_daytime_string
Function
make_daytime_string
example/cpp11/tutorial/daytime5/server.cpp:19–24 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
using boost::asio::ip::udp;
18
19
std::string make_daytime_string()
20
{
21
using namespace std; // For time_t, time and ctime;
22
time_t now = time(0);
23
return ctime(&now);
24
}
25
26
int main()
27
{
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected