Timestamps November 23, 2005 6:39 AM Subscribe
"Timestamps" in "my comments": The quasi-timestamps in "my comments" are wrong. The early ones are right "This morning"/"12 Hours ago"/ "7 Hours Ago" etc.
But then at some point it seems to reset and comments from yesterday are listed as "This morning" and "4 hours ago". It looks like it's only taking time into account and not the date?
But then at some point it seems to reset and comments from yesterday are listed as "This morning" and "4 hours ago". It looks like it's only taking time into account and not the date?
Can I just say that I love the randomness of the time units used in "My Comments"? Especially all the "almosts".
posted by loquax at 6:59 AM on November 23, 2005
posted by loquax at 6:59 AM on November 23, 2005
greater than 12 hours but less than 1 day old stuff was labeled "this morning" as a way to guess at the time of a comment, but I changed it to "more than 12 hours ago"
posted by mathowie (staff) at 8:09 AM on November 23, 2005
posted by mathowie (staff) at 8:09 AM on November 23, 2005
switch( rand() % 4 ) {
case 0:
return "This morning";
case 1:
return (rand() % 60) + " seconds ago";
case 2:
return (rand() % 60) + " minutes ago";
case 3:
return (rand() % 7) + " days ago";
}
Since I don't know CF, I couldn't decide if this joke should be C or Perl. So it's both!
posted by Plutor at 8:23 AM on November 23, 2005
case 0:
return "This morning";
case 1:
return (rand() % 60) + " seconds ago";
case 2:
return (rand() % 60) + " minutes ago";
case 3:
return (rand() % 7) + " days ago";
}
Since I don't know CF, I couldn't decide if this joke should be C or Perl. So it's both!
posted by Plutor at 8:23 AM on November 23, 2005
You are not logged in, either login or create an account to post comments
posted by jessamyn at 6:58 AM on November 23, 2005