Home > Enterprise >  JavaScript built-in objects
JavaScript built-in objects

Time:09-15

Development tools and key technology: Adobe Dreamweaver JavaScript
Author: wave change
Time to write: on April 26, 2020,
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~


JavaScript Date object Date
The Date object (built-in objects)
- use the Date in the JS object to represent a time
Create a Date object
If the time use the constructor creates a Date object, will be encapsulated in the current code execution time
Create a specified time object
Need in the constructor is passed a time string as a parameter


GetDay () - gets the current date of the week
- will return a value of 0 ~ 6
0 said Sunday
1
on Monday.
6 said Saturday


GetTime ()
Object - to get the current date timestamp
- a timestamp, refers to from Greenwich mean time on January 1, 1970, 0 0 0 seconds
Cost to the current date (the number of milliseconds (1 second=1000 milliseconds)
- the underlying computer use is a timestamp in the preservation time
  • Related