
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
Set the seconds for a specified date according to universal time.
JavaScript date setUTCSeconds() method sets the seconds for a specified date according to universal time.
The following are the parameters for setUTCSeconds(secondsValue[, msValue]) methodL
- secondsValue − An integer between 0 and 59, representing the seconds.
- msValue − A number between 0 and 999, representing the milliseconds.
Example
You can try to run the following code to set seconds for a specified date −
<html> <head> <title>JavaScript setUTCSeconds Method</title> </head> <body> <script> var dt = new Date( "Aug 28, 2008 13:30:00" ); dt.setUTCSeconds( 65 ); document.write( dt ); </script> </body> </html>
- Related Articles
- Set the milliseconds for a specified date according to universal time.
- Set the minutes for a specified date according to universal time.
- Set the month for a specified date according to universal time.
- Set the hour for a specified date according to universal time?
- Set the full year for a specified date according to universal time.
- Set the day of the month for a specified date according to universal time?
- How to return the day of the week in the specified date according to universal time?
- How to convert a date to a string using the universal time convention?
- Get current date/time in seconds - JavaScript?
- How to set default date time as system date time in MySQL?
- How to get current date/time in seconds in JavaScript?
- How to get current date/time in milli seconds in Java?
- How to get (format) date and time from mill seconds in Java?
- Display seconds since the epoch with Java Date and Time Conversion Character
- What is the universal set and complement of a set?

Advertisements