Relative date function
Jehiah has a function called getRelativeTime() that will make it really easy to do relative date printing, such as “4 days ago” or “in 2 days.”
Jehiah has a function called getRelativeTime() that will make it really easy to do relative date printing, such as “4 days ago” or “in 2 days.”
July 15th, 2006 at 11:55 pm
I prefer the timesince method that ships with Django.
July 17th, 2006 at 7:04 pm
[...] Jehiah (of relative date function fame) now has some information about spatial proximity searching: This article covers how to search a database via latitude and longitude to find matches based on spatial proximity (or distance). This code is for mysql (also some in python), but it should be easily adaptable to other languages. [...]
July 17th, 2006 at 7:12 pm
Antrix:
Good tip! Thanks.