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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:15:55+00:00 2026-05-13T00:15:55+00:00

Does anyone have an idea how to make a countdown ticker that shows the

  • 0

Does anyone have an idea how to make a countdown ticker that shows the hours and mins left until a perticular time of day and on a weekend (Sat and Sun) the time left until 16:30 on Monday. It would need to reset @ 16:30 everyday except the weekend days.

This has got me stumpped and really could do with some pointers.

Thanks,
B.

  • 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-13T00:15:55+00:00Added an answer on May 13, 2026 at 12:15 am

    If you want the page to count down every second, rather than only on refresh, you should use JavaScript. There are many examples out there, and others can be found using google by searching for Javascript Countdown

    If you wanted to do it in PHP, the best way is to use mktime() to get the unix timestamp of when the time ends, and the value from time().

    Find the difference, and then you can calculate the time left:

    $diff = mktime(...) - time();
    
    $days = floor($diff/60/60/24);
    $hours = floor(($diff - $days*60*60*24)/60/60);
    

    etc.

    EDIT

    Javascript…

    Basic idea of the date object

    var date = new Date(); //gets now
    var weekday = date.getDay(); //gets the current day
    
    //0 is Sunday. 6 is Saturday
    if ( weekday == 0 ){
        date.setTime()(date.getTime()+60*60*24); //increase time by a day
    }
    if (  weekday == 6 ){
        date.setTime()(date.getTime()+60*60*24*2); //increase time by two days
    }
    
    //need to check if we have already passed 16:30, 
    if ( ( date.getHours() == 16 && date.getMinutes() > 30 ) || date.getHours() > 16){
        //if we have, increase the day
        date.setTime()(date.getTime()+60*60*24)
    }
    
    date.setHours(16);
    date.setMinutes(30);
    
    //now the date is the time we want to count down to, which we can use with a jquery plugin
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

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.