JS implementation of the countdown effect code is as follows:
1 <!doctype html> 2 Implementation results in the following:
Timestamp: The number of milliseconds since January 1970 to date: Odate.gettime (); Don't ask me why it is January 1970 so far Oh! Baidu!
Time object:
Get Time:
var odate = new Date ();
Oyear = Odate.getfullyear ();
OMon = Odate.getmonth ();
Oday = Odate.getdate ();
Ohou = Odate.gethours ();
Omin = Odate.getminutes ();
OSec = Odate.getseconds ();
Oweek = Odate.getday ();
Set Time:
Odate.setfullyear (year, month, day);
Odate.setmonth (month);
Odate.setdate (Sun);
Odate.sethours (hours, minutes, seconds, milliseconds);
Time is automatically rounded up;
Probably finishing on these, there are a lot of deficiencies, I hope you have more valuable advice! Learn from each other! Learn from each other! ~ ~ ^_^
JS implementation countdown and Time object