In facebook stream you’ll see the time period at the bottom of the stream. For example: 4 minutes ago, 2 days ago, 3 weeks ago…. In our recent project we have to show similar time fashion for our application’s activity stream. So I write a function to retrieve the time duration. In our mysql database, [...]
[Read more]
Showing entries 1 to 2
Jul
13
2010
May
26
2010
I’ve been thinking a lot about invalid and zero temporal values
and how to detect them with MySQL date and time functions because
mk-table-checksum has to handle “everything” correctly and
efficiently. The requirements are complex because we have to take
into account what MySQL allows to be stored verses what it allows
to be used in certain operations and functions, how it sorts a
mix of real and invalid temporal values for MIN()
and MAX()
, how to detect a temporal value as
equivalent to zero, and how different MySQL versions might affect
any of the aforementioned.
At base, the four guiding requirements are:
- Detect and discard invalid time, date, and datetime values
- Detect zero-equivalent temporal values
- Do #1 and #2 using only MySQL functions
- Work in MySQL 4.0 …
Showing entries 1 to 2