All pastes #766765 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-09 03:44 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>

int main(void)

{
        time_t rawtime;
        struct tm *utctime;
        rawtime = time(NULL);
        utctime = gmtime(&rawtime);
        //printf("%s\n", (asctime(utctime)));
        //mktime(utctime);
        printf("%s\n", (asctime(utctime)));
        utctime->tm_hour += -8;
        mktime(utctime);
        //printf("%d\n", utctime->tm_hour);
        printf("%s\n", (asctime(utctime)));
        return 0;
}