Convert Human Readable Date & Time to Epoch program in C language

In order to convert human readable date & time into seconds since Epoch in Linux, mktime function can be used. mktime takes struct tm as an argument and returns time_t which is nothing but seconds since Epoch.

Here is the program which does this job,

Comments

Popular posts from this blog

MBR partitioning with 'parted' utility

Replace default splash screen in Yocto

Disk Partitioning: MBR vs GPT