Jump to content
NEurope

Archived

This topic is now archived and is closed to further replies.

Twozzok

Anyone good with C programming?

Recommended Posts

http://www.twozzok.com/time.txt

 

Why won't it work :(

 

What it's meant to do is take what you enter (aka. 90 05 17 which would be 17th May 1990) convert it into 'standard' time (I think is either milliseconds or seconds since 1st jan 1970) then take it away from the current 'standard' time.

 

It should then convert it back into years with the mathsy bit near the bottom.

 

 

At the moment, it prints out what I assume is the correct current 'standard' time. And the year '36'. When with what I enter it should be 16. It does this with whatever I enter.

 

EDIT: In C, and sorry for the horrendous lack of formatting in the code, I generally make it nice looking after i've finished it. Bad habit yeah, but I wanna make it work as quick as possible :)

 

 

EDIT ^2: Got it working :) ignore this post.

Share this post


Link to post
Share on other sites

×