1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Multiple countdown hours in one day and weekly repeating countdown

Discussion in 'Programming' started by Anthelior, Feb 11, 2019.

  1. #1
    Greetings everyone. I'm looking for help to create a countdown table for events that some of them repeats each day at 3 different hours, some of them repeats on Monday and Saturday at 3 different hours, etc...

    First of all, what I want is mostly similar to this: https://web.archive.org/web/20130224011532/http://kingofknight.com/times.php

    Let's get to the bottom.

    1st event: Repeats everyday at 00:00, 12:00 and 19:00
    2nd event: Same as above at 02:00, 13:00 and 23:00
    3rd event: Same as above at 02:00, 14:00 and 21:00
    4th event: Same as above at 03:00 and 22:00
    5th event: Same as above at 09:00 and 19:00
    6th event: Same as above at 07:40 and 22:40
    7th event: Same as above at 10:00 and 21:00
    8th event: Repeats on Monday and Saturday at 06:00, 14:00 and 20:00
    9th event: Repeats on Wednesday at 06:00, 14:00, 20:00
    10th event: Repeats on Sunday at 20:30
    11th event: Repeats on Friday at 21:00

    I created this example table for you to understand it better:
    cd.jpg

    I want this countdown to be repeating. First seven events repeats everyday on two or three hours. When first hour countdown finished, I want to second to be started. When second finished, I want to third to be started. When last countdown finished I want it to start next day's first hour countdown. I hope I explained them well.

    I don't have any idea how to create this. Can you explain it to me like explaining to a dummy?
     
    Anthelior, Feb 11, 2019 IP