hilios / jQuery.countdown

The Final Countdown plugin for jQuery
http://hilios.github.io/jQuery.countdown/
MIT License
2.31k stars 720 forks source link

Count just business hours #332

Open djcontel opened 3 years ago

djcontel commented 3 years ago

Hello there,

I have the following working code: $("[data-countdown]").each(function() { var $this = $(this), finalDate = $(this).data("countdown"); $this.countdown(finalDate, {elapse: true}) .on('update.countdown', function(event) { if (event.elapsed) { $this.html(event.strftime("%-D dia(s) %H:%M:%S")); } else { $this.html(event.strftime("%-D dia(s) %H:%M:%S")); } }); });

Is there any way to not count non-working hours?