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/daytime2/server.cpp:18–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
16
using boost::asio::ip::tcp;
17
18
std::string make_daytime_string()
19
{
20
using namespace std; // For time_t, time and ctime;
21
time_t now = time(0);
22
return ctime(&now);
23
}
24
25
int main()
26
{
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected