Introduction
In C programming, the standard library provides some functions to handle date and time manipulation. In this lab, we will learn how to display the current date and time using the ctime
function.
Note: You need to create the file
~/project/main.c
yourself to practice coding and learn how to compile and run it using gcc.
cd ~/project
## create main.c
touch main.c
## compile main.c
gcc main.c -o main
## run main
./main