33 setenv(
"TZ",
"EST5EDT", 1);
38 set(year, month, day, hour, minute,
second, fraction);
39 setenv(
"TZ",
"EST5EDT", 1);
45 setenv(
"TZ",
"EST5EDT", 1);
49 const int hour,
const int minute,
50 const int second,
const int fraction)
58 newTime.tm_year = year - 1900;
59 newTime.tm_mon = month - 1;
60 newTime.tm_mday = day;
61 newTime.tm_hour = hour;
62 newTime.tm_min = minute;
67 newTime.tm_isdst = -1;
69 setTics(mktime(&newTime));
70 binaryTime += fraction;
77 strptime(timeString,
"%A %h %d %H:%M:%S %Y", &newTime);
78 setTics(mktime(&newTime));
89 return binaryTimeToTics(binaryTime);
94 binaryTime = ticsToBinaryTime(tics);
169 cout << *
this << endl;
176 time_t tics = getTics();
178 timeString[24] =
'\0';
179 strncpy(timeString, ctime(&tics), 24);
180 char *line =
new char[25];
182 char *
u = strtok(timeString,
" ");
184 if (u) strcpy(line, u);
186 while ((u = strtok(0,
" ")))
221 timeString[24] =
'\0';
222 strncpy(timeString, ctime(&tics), 24);
223 return s << timeString;
229 s.getline(timeString, 25);