Results 1 to 2 of 2

Thread: Elapsed time twitter like

  1. #1
    Join Date
    Jan 2005
    Location
    Mexico
    Posts
    111
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Elapsed time twitter like

    Hi there,

    how can I emulate the twitter like function: my tweet 5 minutes ago.

    I´m usign a database to retreive the date of a post. I want to display the elapsed time.

    Using datediff()??

    thank you.
    ¡May all be for the good of humanity!
    http://www.dechihuahua.com
    Community of Chihuahua, Mexico
    ---------- (50%)

  2. #2
    Join Date
    Jan 2008
    Location
    Copenhagen
    Posts
    42
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    SELECT
    [whatever]
    FROM
    [your table]
    WHERE
    datediff(mi, [your date/Time column], getdate()) <= 5;

    SQL DateDiff function
    Bruno Alexandre
    Strøby, Danmark

    "a Portuguese in Denmark"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Site up time
    By Spire in forum Technical Support
    Replies: 4
    Last Post: 1st June 2006, 10:30 AM
  2. difference between time
    By Space Cowboy in forum PHP
    Replies: 15
    Last Post: 27th March 2006, 02:10 PM
  3. Time for a change??
    By AndyHearne in forum Garble
    Replies: 12
    Last Post: 26th February 2006, 10:30 AM
  4. Time Zone?
    By Glynn in forum Technical Support
    Replies: 3
    Last Post: 20th May 2005, 11:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •