JavaScript Date getSeconds() methodThe JavaScript date getSeconds() method returns the seconds in the specified date on the basis of local time. SyntaxThe getSeconds() method is represented by the following syntax: ReturnAn integer value between 0 and 59 that represents the second. JavaScript Date getSeconds() method exampleHere, we will understand getSeconds() method through various examples. Example 1Let's see an example to print the value of current second. Test it NowOutput: 56 Example 2Let's see an example to print the value of seconds from the given date. Test it NowOutput: 10
Next TopicJavaScript Math
|
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week