Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7088699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:49:58+00:00 2026-05-28T07:49:58+00:00

First off, I want to apologize beforehand, as I know there is a lot

  • 0

First off, I want to apologize beforehand, as I know there is a lot of information about this subject on the net. But this has been annoying me the whole day.

In my database (MySQL), I have comments stored with the time they have been written (by using CURRENT_TIMESTAMP). Now I would like to make a script that relates the time between the present and the time that a user wrote a comment (for instance "comment written 6 hours ago…").

But here’s the thing, I have tried loads of different scripts and I’m always ending up with the same question. How do I convert my CURRENT_TIMESTAMP to the type of date the script wants me to use?

http://snipplr.com/view/4912/

In the link above there’s a code, and you should define the variable with a date. Now, I have the CURRENT_TIMESTAMP and it looks like this: 2012-01-15 16:21:32

Should I just do the date (2012-01-15 16:21:32)?

Sorry again, I know there’s a lot of information about this on the web, but I’ve been working on this the whole day without results.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:49:58+00:00Added an answer on May 28, 2026 at 7:49 am

    Yes, I tried the format you had in the post and it worked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, I want to say that yes, I do know that doing this
First off I want to start off saying that I don't know anything about
First off, let me start by saying, I know this exact question has been
First off, I apologize if this question has been asked before. I've done a
First, I apologize if this has been answered. I've seen many similar questions but
First off, I know how to and has Integrated Windows Authentication in IIS7. This
First off, I want to say there is no use case for this. The
First off: I know that this isn't reliable for actually checking if I can
so first off, I want to say that this question: Bundle framework with application
First off, please forgive the stupidness of this question but Im not from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.