Tap return on local time. Why? (I'm using Visual C ++ 2008)
struct tm * tb; Time_t lDate; Time (& amp; lDate); TB = Local Time (& amp; lDate); // TB all the time I'm trying this!
Is this your exact code? I compiled this program and it works fine:
#include & lt; Stdio.h & gt; # Include & lt; Time.h> Int main (int argc, char ** argv) {struct tm * tb; Time_t lDate; Time (& amp; lDate); If (lDate == -1) {false ("time"); Return 1; } TB = Local Time (& amp; lDate); If (TB == faucet) {fprintf (stadder, "locktime fails \ n"); Return 1; } Printf ("Good \ n"); Return 0; }
Comments
Post a Comment