Microsoft® JScript UTC Method |
| Language Reference |
|
Computes the number of milliseconds between midnight, January 1, 1970 UTC (or GMT) and the supplied date.
Date.UTC( year, month, day, hours, minutes, seconds )
The UTC method syntax has these parts:
Part Description year The year minus 1900. For example, specify 105 for the year 2005. month The month as an integer between 0 and 11 (January and December). day The day as an integer between 1 and 31. hours Optional. Must be supplied if minutes is supplied. An integer from 0 to 23 (midnight to 11pm) that specifies the hour. minutes Optional. Must be supplied if seconds is supplied. An integer from 0 to 59 that specifies the minutes. seconds Optional. An integer from 0 to 59 that specifies the seconds.
The UTC method returns the number of milliseconds between midnight, January 1, 1970 UTC (Universal Coordinated Time) and the supplied date. This return value can be used in the setTime method and in the Date object constructor.
The difference between the UTC method and the Date object constructor that accepts a date, is that the UTC method assumes UTC, and the Date object constructor assumes local time.
The UTC method is a static method. A Date object does not have to be created before it can be used.
© 1996 by Microsoft Corporation.
file: /Techref/language/asp/js/50.htm, 3KB, , updated: 1996/11/22 11:12, local time: 2024/10/4 02:10,
3.238.82.77:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://piclist.com/techref/language/asp/js/50.htm"> Microsoft® JScript Language Reference </A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.