Page 1 of 1
Comparing timestamps: Finding the oldest
Posted: Tue May 18, 2004 9:25 pm
by Sniper007
If I had 10 variables that were holding 10 different timestamps, and I wanted to compare them to find out which variable had the oldest timestamp, how would I go about that?
Posted: Tue May 18, 2004 9:33 pm
by feyd
Posted: Tue May 18, 2004 9:35 pm
by tim
max() function would be your best bet
/ edit
ahh beaten to it, kudos feyd.
Posted: Tue May 18, 2004 9:39 pm
by feyd
Posted: Tue May 18, 2004 10:47 pm
by markl999
Just to be picky...but if you wanted the oldest timestamp, then that would be the one with the smallest value. So
min() might be better than max

Posted: Tue May 18, 2004 10:54 pm
by feyd
heh oops.. my bad. Good catch mark.

Great! Thanks!
Posted: Wed May 19, 2004 8:49 am
by Sniper007
"I love all you guys!! ...Especially you... aaaaahhh... AHAHAHAHA!"
-Tommy Boy