how can i change this code

davidrt's Avatar, Join Date: Jun 2007
Newbie Member
sorry for double posting, this is my code that shows current time how can i add codes to it that could add 30 minutes to the passed time?
thanks a lot
Code:
#include <stdio.h>
#include <time.h>

int main(void)
{
    time_t result;

    result = time(NULL);
    printf("%s%ju secs since the Epoch\n",
        asctime (localtime (&result)),
        (uintmax_t) result);
    return (0);
}
Edit by DaWei: added code tags
0
DaWei's Avatar, Join Date: Dec 2006
Team Leader
Thirty minutes is 1800 seconds. Add that to your initial value and convert as needed. Once more, please read the "Before you make a query" thread (right up there in the upper right corner) and learn to use code tags to preserve your formatting/indentation. I'm going to do it for you this time, but I ain't yo' mama.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
davidrt, you have 4 thread relating to the same thing and please keep the things at one place to get better responses.