Hi loubna.
There are a couple of things to keep in mind, when using the "ansi_c" time functions in CVI:
1. The epoch (the date corresponding to a time_t value of 0) used in CVI is 01 January 1900, not 01 January 1970 as used in most environments (including Unix and C++), so you will probably see discrepancies if you exchange time_t values with other processes or machines.
2. The time_t value you get from the time() function in CVI depends on your current time zone!!! It should be expressed as GMT or UTC (seconds since epoch at the Greenwich meridian), but here in Melbourne, Australia, the result is 3600 seconds (10 hours) TOO BIG. This caused me much grief a while ago, and I switched to using the Windows SDK for time operations.
As far as I know, these issues have not been addressed in CVI 7.x.
Regards,
Colin.