hilios/jQuery.countdown

Count just business hours

djcontel opened this issue · 0 comments

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?