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 6007527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:41:37+00:00 2026-05-23T01:41:37+00:00

I am trying to get correctly the difference of the current time and a

  • 0

I am trying to get correctly the difference of the current time and a blog’s post. When I echo the post’s time I get this Sun, 05 Jun 2011 07:24:00 +0000 while the correct time should be Sun, 05 Jun 2011 10:24:00 +0000 it’s also shown on the XML feed.

With time(); I get the current time. My current time is 19:44. and this is the output of the function below 'day': 5,'month': 0,'year': 0,'hour': 2,'min': 14,'sec': 37 5 days, 2 hours, 20 mins and 37 sec.

How can I correctly show the passed time, by adding 9 hours to the output result ? ( It should be 12 hours but the 3 are “lost” as I said above).

  • 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-23T01:41:37+00:00Added an answer on May 23, 2026 at 1:41 am

    have you tried $my_time = strtotime("+9 hours") ? it’ll return your current time +9 hours in unix format, you can get format it as you like

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

Sidebar

Related Questions

Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get
I've been trying to get this Excel function working correctly, and I've hit a
Trying to get my css / C# functions to look like this: body {
Trying to get an ASP application deployed; it worked for a while but then
Ok I am trying to write a query that says get the current date
So I have been trying for hours to get this to work and I
I'm currently trying to get into the Java EE development with the Spring framework.
I'm currently trying to get a UISlider to work. I'm trying to set the
I have been trying to get more in to TDD. Currently keeping it simple
I currently use VS 2008 Professional, but I'm trying to get Team System Developer

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.