Note: The following is the calculation of a number of games starting 09:10:00 every day, to every 10 minutes for a period of time, display countdown;
600 seconds to 10 minutes time
COMMON.DATEDIFFM (' 2016-09-10 09:37:59 ', ' 2016-09-10 09:10:00 ')
parseint (COMMON.DATEDIFFM (' 2016-09-10 09:37:59 ', ' 2016-09-10 09:10:00 ')/600) *600
//calculation left in time, that is, Countdown time, With the time difference minus the number of passes,
-Parseint (COMMON.DATEDIFFM (' 2016-09-10 09:37:59 ', ' 2016-09-10 09:10:00 ')
/600) *600)
Console.log (Formatseconds-COMMON.DATEDIFFM (' 2016-09-10 09:37:59 ',
' 2016-09-10 09:10:00 ')-parseint (COMMON.DATEDIFFM (' 2016-09-10 09:37:59 '),
' 2016-09-10-09:10:00 ')/600)) (*600));
Formatseconds () This method converts the seconds to: 00 hours, 00 minutes, 00 seconds;
DATEDIFFM () Two date subtraction processing is the number of seconds;