I think this may serve u  r purpose

#include <stdio.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>



int main()
{
        time_t t;  //Number in Unsigned format
        printf("% u \n ",t);
        time(&t);
        printf("%s",ctime(&t)); //  Time in Human readable format
        return 0;
}


On Tue, 23 Aug 2005 15:30:13 +0800, Lejanson C. Go <[EMAIL PROTECTED]> wrote:

Hi,

I had searched the net on how to convert unsigned long timestamp
to human readable format or maybe in struct timeval format. Any sample code that you can share would be greatly appreciated.
Thanks.

Lejanson


-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" 
in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to