EmbLogic's Blog

Time calls in system Programming.

In system programming it is very important to know the current time of your system ,Because you will be often needed to use that information i.e every time when you create any File or Directory and then you want to replace it with it’s upgrade. You should know how to find out the older version.
Time of Linux/Unix time was started at 5:30 ,1st jan. 19970 (epoch). While in Dos it was started at 1980.
so we uses a very basic function in C that is {time_t time(time_t var)}; this function is in header file time.h, so don’t forget to include that.
{time_t} is a data type of C the only purpose to store value of Time (in low level language)
further we have functions like
gmtime(),difftime(),localtime(),mktime(),asctime(),ctime().

see programme

https://drive.google.com/drive/folders/0B-dkmspcBW7aUlo3R0hsZ1BhRlE?usp=sharing

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>