• Welcome to Valhalla Legends Archive.
 
Main Menu

Trouble

Started by Hazard, August 05, 2004, 01:40 PM

Previous topic - Next topic

iago

Quote from: Ersan on August 13, 2004, 10:21 PM
Quote from: Yoni on August 13, 2004, 12:04 PM
You got 7 questions correct out of 10 questions in approximately -1158 minute(s).

Uhh... Yeah. I award myself the Least Amount Of Time To Complete The Test award.

That would *only* happen if you started and completed the test between noon and 1pm or midnight and 1am, respectively, at least as far as I know.

omg, you don't store time in milliseconds?  Fool!

I store my time in milliseconds, and I wrote a difference function like this:
   public static String timeToString(long time)
   {
       long days = time / DAY;
       time = time % DAY;
       
       long hours = time / HOUR;
       time = time % HOUR;
       
       long minutes = time / MINUTE;
       time = time % MINUTE;
       
       long seconds = time / SECOND;
       time = time % SECOND;
       
       StringBuffer s = new StringBuffer();
       
       s.append(days > 0 ?       days + " days "         : "");
       s.append(hours > 0 ?    hours + " hours"       : "");
       s.append(minutes > 0 ?   minutes + " minutes "   : "");
       s.append(seconds > 0 ?   seconds + " seconds "   : "");
       s.append(time > 0 ?    time + " ms "          : "");
       
       return s.toString();
   }
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


ChR0NiC

#31
You got 9 questions correct out of 10 questions in approximately 2 minute(s).
Please submit your Battle.net username and Instant Messenger information if you are interested in joining:

Damn pretty close to a perfect 10 >:( Ah well, close enough, and yes I know VB I wonder which question I got wrong, maybe Ersan can tell me.

My IP is 154.5.#.# just in case you do not believe me.

|