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

  • Home
  • SEARCH
  • 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 8060917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:09:16+00:00 2026-06-05T10:09:16+00:00

For example, given 1339372800, which is Mon, 11 Jun 2012 00:00:00 GMT, I would

  • 0

For example, given 1339372800, which is Mon, 11 Jun 2012 00:00:00 GMT, I would like to get the next X hours including 1339372800. So for the next 3 hours, the result would be

+------------+
| hours      |
+------------+
| 1339372800 |
| 1339376400 |
| 1339380000 |
+------------+

I think I need to create a loop but I don’t know how to proceed from that. Thanks.

  • 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-06-05T10:09:17+00:00Added an answer on June 5, 2026 at 10:09 am

    You could use a numbers table as Creating a "Numbers Table" in mysql that contains all hours for a considerate amount of time, and query that:

    SELECT hour
    FROM hours
    WHERE hour >= 1339372800
    ORDER BY hour ASC
    LIMIT 3
    

    That makes the query really easy, and the table should not be too big, either. (Less than 90k rows for 10 years.)

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

Sidebar

Related Questions

For example given an input file like below: sid|storeNo|latitude|longitude 2|1|-28.03õ720000 9|2 10 jgn 352|1|-28.03¿720000
I'm currently working on a Database which requires the following functionality: For example given
the cURL example given here http://curl.haxx.se/libcurl/c/getinmemory.html shows how to get a url to memory.
I checked out the example given on http://naghsheh.info/Pivot/Pivot.htm and tried to get it work
So I'm trying to add a pretty simple context menu like the example given
Given an absolute URI/URL, I want to get a URI/URL which doesn't contain the
I'm following the example given in http://www.blog.pythonlibrary.org/2010/05/22/wxpython-and-threads/ I have a thread which is checking
In most languages like C# for example given a string you can test (boolean)
For example given the BlogPost/Comments schema here: http://mongoosejs.com/ How would I find all posts
What is the proper way to indicate something like an example given a list

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.