Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
12hours Clock c++
#include <iostream> #include <ctime> #include <sstream> using namespace std; int main() { time_t now=time(0); struct tm* gmt=localtime(&now); char *dt=asctime(gmt); puts(dt); char buffer[20]; strftime (buffer,80,"%I:%M %p.",gmt); puts(buffer); }
run
|
edit
|
history
|
help
0
Size of data type test
C++ Inheritance Example
HeatPump COP
ClassQuiz2
Hello
rotate
Reverse a string
Round prices
PrintShape
TemplateDoubly