Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 16/1/119 23:55:0
- 16/1/119 23:55:0
- 16/1/119 23:60:0
- 16/1/119 23:0:0
- 16/1/119 23:5:0
- 16/1/119 23:5:0
- 16/1/119 23:10:0
- 16/1/119 23:10:0
- 16/1/119 23:15:0
- 16/1/119 23:15:0
- #include <stdio.h>
- #include <time.h>
- int main()
- {
- struct tm dt_stream;
- int i;
- dt_stream.tm_mday = 16;
- dt_stream.tm_mon = 1; //02 Fev;
- dt_stream.tm_year = 19 + 2000 - 1900; //2019
- dt_stream.tm_hour = 23;
- dt_stream.tm_min = 50;
- dt_stream.tm_sec = 0;
- for ( i=0; i<5; i++) {
- dt_stream.tm_min = dt_stream.tm_min + 5;
- printf("%d/%d/%d %d:%d:%dn", dt_stream.tm_mday, dt_stream.tm_mon, dt_stream.tm_year,
- dt_stream.tm_hour,dt_stream.tm_min, dt_stream.tm_sec);
- mktime(&dt_stream);
- printf("%d/%d/%d %d:%d:%dn", dt_stream.tm_mday, dt_stream.tm_mon, dt_stream.tm_year,
- dt_stream.tm_hour,dt_stream.tm_min, dt_stream.tm_sec);
- printf("*****n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement