Links

Get Event Countdown

<Integer|Array|Object|Boolean> getCountdown([<Constant> format = LViS.TIME_FORMAT_SECONDS])
Returns time left to the start of the Event where format defines which format will be returned. By default format equals to LViS.TIME_FORMAT_SECONDS
Seconds
Array
Object
var event = LViS.getEvent();
event.getCountDown(LViS.TIME_FORMAT_SECONDS)
// 2611298
var event = LViS.getEvent();
event.getCountDown(LViS.TIME_FORMAT_ARRAY)
// array [21, 20, 5, 30, 0, 0]
var event = LViS.getEvent();
event.getCountDown(LViS.TIME_FORMAT_OBJECT)
// {
// years: 0,
// months: 0,
// days: 30,
// hours: 5,
// minutes: 19,
// seconds: 8
// }