file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
javascript/reference/global_objects/date/getyear/index.md
JavaScript - Global Objects - Date - getYear - Syntax - Parameters: None.
[ -0.40031760931015015, 0.6306516528129578, -1.4451507329940796, -0.8421230316162109, -0.6052240133285522, -1.8807659149169922, 0.3332677185535431, 1.0401867628097534, -0.5069575309753418, -0.36317092180252075, -0.6479384899139404, -0.1528840959072113, -0.30008766055107117, 0.355379223823547...
javascript/reference/global_objects/date/getyear/index.md
JavaScript - Global Objects - Date - getYear - Syntax - Return value: An integer representing the year for the given date according to local time, minus 1900. Returns `NaN` if the date is invalid. - For years greater than or equal to 2000, the value is 100 or greater. For example, if the year is 2026, `getYear()` ret...
[ -1.074374794960022, 0.6255946755409241, -0.911722719669342, -0.2657783627510071, -0.1402539759874344, -2.1379497051239014, 0.11303655058145523, 0.35534149408340454, -0.8401804566383362, 1.1303682327270508, -0.7543443441390991, 1.0071731805801392, -1.011318325996399, 0.5837286710739136, -...
javascript/reference/global_objects/date/getyear/index.md
JavaScript - Global Objects - Date - getYear - Examples - Years between 1900 and 1999: The second statement assigns the value 95 to the variable `year`. Example: const xmas = new Date("1995-12-25"); const year = xmas.getYear(); // returns 95
[ -1.2823498249053955, -0.0935172513127327, -1.1852874755859375, 0.1488358974456787, -0.3198874592781067, -1.261633276939392, -0.6389671564102173, 0.7071456909179688, 0.1872846484184265, 0.1529490351676941, 0.2014303356409073, 0.43258729577064514, -0.487643301486969, 0.24022549390792847, -...
javascript/reference/global_objects/date/getyear/index.md
JavaScript - Global Objects - Date - getYear - Examples - Years above 1999: The second statement assigns the value 100 to the variable `year`. Example: const xmas = new Date("2000-12-25"); const year = xmas.getYear(); // returns 100
[ -1.0732561349868774, -0.06945469230413437, -1.3390153646469116, 0.34713420271873474, -0.3884616196155548, -1.7810356616973877, -0.05471997708082199, 0.5465373396873474, -0.07479546964168549, 0.10483947396278381, 0.024111177772283554, 0.5640298128128052, -0.34190043807029724, 0.374970763921...
javascript/reference/global_objects/date/getyear/index.md
JavaScript - Global Objects - Date - getYear - Examples - Years below 1900: The second statement assigns the value -100 to the variable `year`. Example: const xmas = new Date("1800-12-25"); const year = xmas.getYear(); // returns -100
[ -1.3705003261566162, -0.25714075565338135, -1.4332865476608276, 0.2673739194869995, -0.281800776720047, -2.0639100074768066, 0.16646578907966614, 0.7051230669021606, -0.26259803771972656, 0.33001643419265747, -0.389037162065506, 0.4143849015235901, -0.5071138143539429, 0.25127628445625305,...
javascript/reference/global_objects/date/getyear/index.md
JavaScript - Global Objects - Date - getYear - Examples - Setting and getting a year between 1900 and 1999: The third statement assigns the value 95 to the variable `year`, representing the year 1995. Example: const xmas = new Date("2015-12-25"); xmas.setYear(95); const year = xmas.getYear(); // returns 95
[ -1.225624680519104, 0.007892369292676449, -1.4469565153121948, -0.03205256536602974, -0.19196456670761108, -1.4171319007873535, -0.44501590728759766, 0.9512245655059814, 0.38147127628326416, 0.30828621983528137, 0.2435368299484253, 0.6787915825843811, -0.41191303730010986, 0.18536327779293...
javascript/reference/global_objects/date/getutcday/index.md
JavaScript - Global Objects - Date - getUTCDay: The `getUTCDay()` method of `Date` instances returns the day of the week for this date according to universal time, where 0 represents Sunday. Example: const date1 = new Date("August 19, 1975 23:15:30 GMT+11:00"); const date2 = new Date("August 19, 1975 23:15:30 GMT-11...
[ -1.1137518882751465, -0.06856202334165573, -1.905389666557312, 0.18837034702301025, -0.3677169978618622, -2.0167033672332764, -0.875190258026123, 0.22653259336948395, 0.1588585078716278, 0.27127596735954285, 0.24833668768405914, 0.5850041508674622, 0.48442342877388, 0.6790456771850586, -...
javascript/reference/global_objects/date/getutcday/index.md
JavaScript - Global Objects - Date - getUTCDay - Syntax: Example: getUTCDay()
[ -0.6031445264816284, 0.06805998086929321, -1.81482994556427, 0.01652933657169342, -0.8734965920448303, -2.3114490509033203, -0.12615655362606049, 0.2907286286354065, -0.005167780444025993, -0.36899465322494507, 0.4477863013744354, 0.47702592611312866, 0.18752744793891907, 0.275546073913574...
javascript/reference/global_objects/date/getutcday/index.md
JavaScript - Global Objects - Date - getUTCDay - Syntax - Parameters: None.
[ -0.5325932502746582, 0.22254213690757751, -1.8852717876434326, -0.18185241520404816, -0.7726511359214783, -1.6251627206802368, 0.33112797141075134, 0.652626097202301, -0.06373044848442078, -0.3946231007575989, 0.03992175683379173, -0.026021381840109825, 0.35110047459602356, 0.2705339789390...
javascript/reference/global_objects/date/getutcday/index.md
JavaScript - Global Objects - Date - getUTCDay - Syntax - Return value: An integer corresponding to the day of the week for the given date according to universal time: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on. Returns `NaN` if the date is invalid.
[ -1.2930169105529785, 0.1729746013879776, -1.221075177192688, 0.1539544016122818, -0.5077902674674988, -1.7647401094436646, 0.16046366095542908, 0.305550217628479, -0.5411877632141113, 0.3813728988170624, -0.24881188571453094, 0.7919975519180298, 0.43382546305656433, 0.588023841381073, -0...
javascript/reference/global_objects/date/getutcday/index.md
JavaScript - Global Objects - Date - getUTCDay - Examples - Using getUTCDay(): The following example assigns the weekday portion of the current date to the variable `weekday`. Example: const today = new Date(); const weekday = today.getUTCDay();
[ -1.3894321918487549, 0.05336209759116173, -1.5837321281433105, 0.5707165598869324, -0.4317305088043213, -1.885600209236145, 0.07252103835344315, -0.21270473301410675, 0.6593896150588989, -0.009351225569844246, 0.1368580162525177, 0.5639278292655945, 0.31604236364364624, 0.4968164563179016,...
javascript/reference/global_objects/date/getutcseconds/index.md
JavaScript - Global Objects - Date - getUTCSeconds: The `getUTCSeconds()` method of `Date` instances returns the seconds in the specified date according to universal time. Example: const moonLanding = new Date("July 20, 1969, 20:18:04 UTC"); console.log(moonLanding.getUTCSeconds()); // Expected output: 4
[ -0.21397195756435394, 0.3372681140899658, -2.2930593490600586, 0.5253170728683472, -0.184423565864563, -1.4401843547821045, -0.11840388178825378, 0.2563965916633606, -0.45872798562049866, -0.19566133618354797, -0.07976101338863373, 0.6641278862953186, 0.5906915664672852, 0.4848385751247406...
javascript/reference/global_objects/date/getutcseconds/index.md
JavaScript - Global Objects - Date - getUTCSeconds - Syntax: Example: getUTCSeconds()
[ -0.6065422892570496, 0.33055606484413147, -1.4885820150375366, 0.4982913136482239, -0.7121376991271973, -1.9923564195632935, -0.1525564193725586, 0.8444907069206238, 0.04211857542395592, -0.44335535168647766, 0.24507568776607513, 0.4483652710914612, 0.17469686269760132, 0.2591048777103424,...
javascript/reference/global_objects/date/getutcseconds/index.md
JavaScript - Global Objects - Date - getUTCSeconds - Syntax - Parameters: None.
[ -0.6718077659606934, 0.3879927694797516, -1.5402655601501465, 0.06428159773349762, -0.5694502592086792, -1.3523951768875122, 0.41383135318756104, 1.0810168981552124, 0.1268143355846405, -0.5074069499969482, -0.05189196392893791, -0.011114301159977913, 0.3758510947227478, 0.2187557667493820...
javascript/reference/global_objects/date/getutcseconds/index.md
JavaScript - Global Objects - Date - getUTCSeconds - Syntax - Return value: An integer, between 0 and 59, representing the seconds for the given date according to universal time. Returns `NaN` if the date is invalid.
[ -0.8804264068603516, 0.02272080071270466, -1.0072592496871948, -0.06303779035806656, -0.3916025757789612, -0.9941574335098267, -0.16936500370502472, 0.5481656193733215, -0.4674721956253052, 0.2285928726196289, -0.24027805030345917, 0.8216989040374756, 0.4664992094039917, 0.1640247255563736...
javascript/reference/global_objects/date/getutcseconds/index.md
JavaScript - Global Objects - Date - getUTCSeconds - Examples - Using getUTCSeconds(): The following example assigns the seconds portion of the current time to the variable `seconds`. Example: const today = new Date(); const seconds = today.getUTCSeconds();
[ -0.9560807347297668, 0.3879665434360504, -1.5740567445755005, 0.7413471937179565, -0.3614479899406433, -1.188720464706421, -0.1340213418006897, 0.10988999903202057, 0.5872665643692017, -0.3081028163433075, -0.018978489562869072, 0.3430408537387848, 0.21257705986499786, 0.14196421205997467,...
javascript/reference/global_objects/date/setminutes/index.md
JavaScript - Global Objects - Date - setMinutes: The `setMinutes()` method of `Date` instances changes the minutes for this date according to local time. Example: const event = new Date("August 19, 1975 23:15:30"); event.setMinutes(45); console.log(event.getMinutes()); // Expected output: 45 console.log(event); /...
[ -0.17648696899414062, -0.26462092995643616, -1.0196387767791748, 0.8240347504615784, -0.39017248153686523, -1.6867711544036865, -0.6015140414237976, 0.3963879644870758, 0.018727736547589302, 0.2666422128677368, -0.43591630458831787, 0.24735812842845917, -0.24500712752342224, 0.133141502737...
javascript/reference/global_objects/date/setminutes/index.md
JavaScript - Global Objects - Date - setMinutes - Syntax: Example: setMinutes(minutesValue) setMinutes(minutesValue, secondsValue) setMinutes(minutesValue, secondsValue, msValue)
[ -0.5327897071838379, 0.49471622705459595, -0.7390260696411133, 0.44339093565940857, -0.5284698009490967, -1.3538377285003662, -0.013387493789196014, 0.7861371040344238, 0.15986260771751404, -0.5665377974510193, -0.2781237065792084, 0.12241211533546448, 0.5573605895042419, -0.26041114330291...
javascript/reference/global_objects/date/setminutes/index.md
JavaScript - Global Objects - Date - setMinutes - Syntax - Parameters: - `minutesValue`: An integer between 0 and 59 representing the minutes. - `secondsValue` (optional): An integer between 0 and 59 representing the seconds. If you specify `secondsValue`, you must also specify `minutesValue`. - `msValue` (optional): ...
[ -0.9593074321746826, -0.19103007018566132, -0.6625267267227173, 0.06060359254479408, -0.05845478177070618, -1.2713184356689453, -0.17762894928455353, 0.15557743608951569, 0.6900172233581543, 0.006618015468120575, -0.37663522362709045, -0.023958684876561165, 0.5305519700050354, -0.125682711...
javascript/reference/global_objects/date/setminutes/index.md
JavaScript - Global Objects - Date - setMinutes - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If a parameter is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -0.9105338454246521, -0.15681013464927673, -0.6718086004257202, 0.28426340222358704, -0.41037294268608093, -1.6476222276687622, 0.3343043327331543, 1.0214406251907349, -1.0215051174163818, 0.44456976652145386, -0.8565804362297058, 0.3978320360183716, 0.03677046298980713, 0.4118759930133819...
javascript/reference/global_objects/date/setminutes/index.md
JavaScript - Global Objects - Date - setMinutes - Description: If you do not specify the `secondsValue` and `msValue` parameters, the same values as what are returned by `getSeconds()` and `getMilliseconds()` are used. If a parameter you specify is outside of the expected range, other parameters and the date informat...
[ -0.9295242428779602, 0.0860287994146347, -1.7374482154846191, 1.156051754951477, -0.27262577414512634, -1.6797678470611572, -0.21470439434051514, -0.06432736665010452, -0.1660352349281311, 0.38333767652511597, -0.6105070114135742, -0.08039909601211548, 0.3294553756713867, 0.150214731693267...
javascript/reference/global_objects/date/setminutes/index.md
JavaScript - Global Objects - Date - setMinutes - Examples - Using setMinutes(): Example: const theBigDay = new Date(); theBigDay.setMinutes(45);
[ -0.8524144887924194, 0.09106316417455673, -0.8289534449577332, 0.5898593068122864, -0.5787320137023926, -0.9327593445777893, -0.06458069384098053, -0.0215263944119215, -0.24522458016872406, -0.5644614100456238, -0.8410525321960449, -0.11427362263202667, 0.2678545117378235, 0.07165484875440...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString: The `toLocaleString()` method of `Date` instances returns a string with a language-sensitive representation of this date in the local timezone. In implementations with `Intl.DateTimeFormat` API support, this method delegates to `Intl.DateTimeFormat`. Every time `to...
[ -0.3872471749782562, -0.10737951099872589, 0.18966875970363617, 0.15230044722557068, 0.9306066632270813, -1.4716423749923706, 0.21284791827201843, 0.07152481377124786, -0.7734559774398804, 0.19790031015872955, -0.5769096612930298, 0.08154694736003876, -0.06235989183187485, 0.47727030515670...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - Syntax: Example: toLocaleString() toLocaleString(locales) toLocaleString(locales, options)
[ -0.7283592224121094, 0.7693301439285278, -0.07272833585739136, 0.11938850581645966, -0.4058944880962372, -2.4626548290252686, 0.413252055644989, 0.3483017683029175, -0.31931474804878235, -0.8630979657173157, 0.17124353349208832, 0.36343100666999817, 0.33476513624191284, -0.1639685928821563...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - Syntax - Parameters: The `locales` and `options` parameters customize the behavior of the function and let applications specify the language whose formatting conventions should be used. In implementations that support the `Intl.DateTimeFormat` API, these parameter...
[ -0.7349921464920044, 0.22676408290863037, -0.7571724057197571, 0.6026766300201416, -0.027935095131397247, -1.8367184400558472, 1.1263043880462646, -0.5644954442977905, -0.20323841273784637, 0.2829599976539612, -1.0073710680007935, -0.0184185728430748, 0.3623528480529785, 0.3056184351444244...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - Syntax - Return value: A string representing the given date according to language-specific conventions. In implementations with `Intl.DateTimeFormat`, this is equivalent to `new Intl.DateTimeFormat(locales, options).format(date)`. Note: Most of the time, the form...
[ -1.1907116174697876, 0.39149144291877747, -0.2967349886894226, 0.0405186302959919, 0.0389210507273674, -1.8094290494918823, 0.599021852016449, 0.26150134205818176, -0.679234504699707, 0.14333663880825043, -0.07028162479400635, 1.0055652856826782, -0.24947476387023926, 0.4180525541305542, ...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - Examples - Using toLocaleString(): Basic use of this method – without specifying `locale` or `options` – depends on the implementation and returns a string formatted based on the default locale and time zone, and with default options. Example: const date = new Da...
[ -1.1265406608581543, 0.019665222615003586, -0.9891867637634277, 0.7241777181625366, -0.16194981336593628, -1.7883907556533813, 0.24052788317203522, -0.20161642134189606, -0.12818200886249542, -0.4017901122570038, 0.09427060186862946, 0.8693310618400574, 0.3756592869758606, -0.1676528155803...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - Examples - Checking for support for locales and options parameters: The `locales` and `options` parameters may not be supported in all implementations, because support for the internationalization API is optional, and some systems may not have the necessary data. F...
[ -0.9436715245246887, 0.24492938816547394, -0.23241758346557617, 0.7891838550567627, -0.059554774314165115, -1.989993691444397, 0.6077004671096802, -0.1835154891014099, -0.5875550508499146, -0.13400132954120636, 0.010798017494380474, -0.5075555443763733, 0.8889972567558289, 0.46079561114311...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - Examples - Using locales: This example shows some of the variations in localized date and time formats. In order to get the format of the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languag...
[ -0.698932409286499, 0.1527501940727234, -0.5215160846710205, 0.3397643566131592, 0.14222002029418945, -0.6089361310005188, 0.2526389956474304, 0.03302573040127754, -0.6104539036750793, -0.2965572774410248, 0.1165395975112915, 0.10894522070884705, -0.10431098192930222, 0.6650190949440002, ...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - Examples - Using options: The results provided by `toLocaleString()` can be customized using the `options` parameter: Example: const date = new Date(Date.UTC(2012, 11, 20, 3, 0, 0)); // Request a weekday along with a long date const options = { weekday: "long"...
[ -0.9097051024436951, 0.09589696675539017, -1.229505181312561, 0.9107133746147156, -0.13415658473968506, -1.8727898597717285, -0.3444700241088867, -0.5469620227813721, 0.027981724590063095, 0.2817198634147644, 0.07003512233495712, 0.7873367667198181, 0.5583036541938782, 0.1352190226316452, ...
javascript/reference/global_objects/date/getutcdate/index.md
JavaScript - Global Objects - Date - getUTCDate: The `getUTCDate()` method of `Date` instances returns the day of the month for this date according to universal time. Example: const date1 = new Date("August 19, 1975 23:15:30 GMT+11:00"); const date2 = new Date("August 19, 1975 23:15:30 GMT-11:00"); console.log(date...
[ -0.14167843759059906, -0.07039003074169159, -2.251147508621216, 0.40231162309646606, -0.3574330806732178, -1.8073385953903198, -0.4561851918697357, 0.27004918456077576, -0.09440438449382782, 0.2347732037305832, 0.14764046669006348, 0.5576711297035217, 0.22966566681861877, 0.745783329010009...
javascript/reference/global_objects/date/getutcdate/index.md
JavaScript - Global Objects - Date - getUTCDate - Syntax: Example: getUTCDate()
[ -0.2043352723121643, 0.3760455250740051, -1.9716659784317017, 0.21007394790649414, -0.7009983658790588, -2.1005146503448486, -0.08494596183300018, 0.491193950176239, -0.04543451964855194, -0.3201265037059784, 0.3531964123249054, 0.6822752952575684, 0.18779821693897247, 0.3001886010169983, ...
javascript/reference/global_objects/date/getutcdate/index.md
JavaScript - Global Objects - Date - getUTCDate - Syntax - Parameters: None.
[ -0.20675736665725708, 0.461442768573761, -2.0383572578430176, -0.03873934596776962, -0.6165004968643188, -1.513576626777649, 0.4162141978740692, 0.8737205266952515, -0.07633847743272781, -0.349865198135376, 0.07776658236980438, 0.14026373624801636, 0.23053279519081116, 0.3173908293247223, ...
javascript/reference/global_objects/date/getutcdate/index.md
JavaScript - Global Objects - Date - getUTCDate - Syntax - Return value: An integer, between 1 and 31, representing day of month for the given date according to universal time. Returns `NaN` if the date is invalid.
[ -0.5137027502059937, 0.009404703043401241, -1.4412328004837036, -0.37568429112434387, -0.45168939232826233, -1.5269302129745483, 0.012760302983224392, 0.45708802342414856, -0.6002762913703918, 0.44868984818458557, -0.17200332880020142, 0.8460813760757446, 0.3416292369365692, 0.481275439262...
javascript/reference/global_objects/date/getutcdate/index.md
JavaScript - Global Objects - Date - getUTCDate - Examples - Using getUTCDate(): The following example assigns the day of month of the current date to the variable `dayOfMonth`. Example: const today = new Date(); const dayOfMonth = today.getUTCDate();
[ -0.5341796875, 0.07170062512159348, -1.9806180000305176, 0.47474703192710876, -0.5683181881904602, -1.661110520362854, -0.06075026094913483, -0.2913804352283478, 0.41563695669174194, -0.2961484491825104, 0.08815913647413254, 0.19796572625637054, 0.401378870010376, 0.666025698184967, -0.0...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now: The `Date.now()` static method returns the number of milliseconds elapsed since the epoch, which is defined as the midnight at the beginning of January 1, 1970, UTC. Example: // This example takes 2 seconds to run const start = Date.now(); console.log("starting timer..."); ...
[ -1.2289811372756958, -0.5892711281776428, -0.955118715763092, 0.23240993916988373, 0.18608078360557556, -0.8182889819145203, 0.0719410628080368, 0.5521234273910522, 0.06145356222987175, 0.8283668160438538, -0.30922365188598633, 0.44058266282081604, 0.3775661289691925, 0.0369592010974884, ...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now - Syntax: Example: Date.now()
[ -0.4477219581604004, 0.1347097009420395, -0.7041776180267334, -0.20700986683368683, -0.48108071088790894, -1.8073773384094238, 0.16267386078834534, 1.1502114534378052, 0.11176160722970963, -0.3821278512477875, 0.24281853437423706, 0.5159902572631836, 0.1681622415781021, -0.2646168768405914...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now - Syntax - Parameters: None.
[ -0.12118801474571228, 0.2745495140552521, -1.0669299364089966, -0.5285437703132629, -0.7178176641464233, -1.3415861129760742, 0.7342004179954529, 1.0371876955032349, -0.09436804056167603, -0.39221516251564026, -0.4903019964694977, -0.16574358940124512, 0.35701555013656616, 0.05108727142214...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now - Syntax - Return value: A number representing the timestamp, in milliseconds, of the current time.
[ -0.37024036049842834, -0.17336441576480865, -0.8220863938331604, -0.3532116413116455, -0.5165660381317139, -1.1354789733886719, 0.01141942385584116, 1.0509328842163086, -0.2384287565946579, 0.17688433825969696, -0.6952054500579834, 0.6227353811264038, 0.2134016752243042, 0.4563463628292084...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now - Description - Reduced time precision: To offer protection against timing attacks and fingerprinting, the precision of `Date.now()` might get rounded depending on browser settings. In Firefox, the `privacy.reduceTimerPrecision` preference is enabled by default and defaults to ...
[ -1.5465830564498901, 0.12090650945901871, -0.7405394315719604, 0.27546870708465576, -0.24049851298332214, -0.9298003911972046, 0.40331438183784485, 0.0007571687456220388, -0.11857948452234268, 1.0664489269256592, -0.7219995260238647, 0.15640094876289368, -0.6444154381752014, -0.10458571463...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now - Examples - Measuring time elapsed: You can use `Date.now()` to get the current time in milliseconds, then subtract a previous time to find out how much time elapsed between the two calls. Example: const start = Date.now(); doSomeLongRunningProcess(); console.log(`Time elaps...
[ -1.56613290309906, -0.21541346609592438, -0.6114596128463745, 0.472511887550354, -0.2617637813091278, -0.8356679081916809, -0.40724101662635803, -0.19810174405574799, -0.038043126463890076, 0.43937206268310547, -0.45892682671546936, -0.10346884280443192, 0.2607288360595703, 0.3363727033138...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds: The `setMilliseconds()` method of `Date` instances changes the milliseconds for this date according to local time. Example: const event = new Date("August 19, 1975 23:15:30"); console.log(event.getMilliseconds()); // Expected output: 0 event.setMilliseconds(456...
[ -0.7265942096710205, -0.6911584138870239, -1.316146969795227, 0.513854444026947, -0.4347170889377594, -1.536032795906067, -0.44478991627693176, 0.24387644231319427, 0.12349967658519745, 0.02237492986023426, -0.7656171917915344, 0.07526782155036926, 0.462374746799469, -0.19523820281028748, ...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds - Syntax: Example: setMilliseconds(millisecondsValue)
[ -0.6811842322349548, 0.07468487322330475, -0.8577633500099182, 0.4113268554210663, -0.7643792033195496, -1.290634036064148, 0.23374657332897186, 0.7647566199302673, 0.18033932149410248, -0.7256404757499695, -0.2900499701499939, 0.22887034714221954, 1.2087470293045044, -0.1660858541727066, ...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds - Syntax - Parameters: - `millisecondsValue`: An integer between 0 and 999 representing the milliseconds.
[ -0.7695313692092896, -0.2708262503147125, -0.996096134185791, 0.016602441668510437, -0.41354823112487793, -0.9072062373161316, -0.36479872465133667, 0.6999364495277405, 0.4347677528858185, -0.45340973138809204, -0.9342712759971619, 0.15647681057453156, 0.9004418253898621, -0.27217122912406...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If `millisecondsValue` is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -1.1092220544815063, -0.21429556608200073, -0.6490288972854614, 0.3186550736427307, -0.4516298174858093, -1.475886344909668, 0.4187382161617279, 0.7011990547180176, -0.6599001288414001, 0.3733256459236145, -0.7869161367416382, 0.2609498202800751, 0.4552531838417053, 0.13553382456302643, ...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds - Description: If you specify a number outside the expected range, the date information in the `Date` object is updated accordingly. For example, if you specify 1005, the number of seconds is incremented by 1, and 5 is used for the milliseconds. Because `setMillise...
[ -1.1132373809814453, -0.34974783658981323, -1.5187407732009888, 0.8877899050712585, -0.1796942949295044, -2.041853904724121, -0.056217044591903687, -0.1842632293701172, -0.020803501829504967, 0.38589102029800415, -0.9721820950508118, -0.1876053661108017, -0.023099640384316444, 0.1871567219...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds - Examples - Using setMilliseconds(): Example: const theBigDay = new Date(); theBigDay.setMilliseconds(100);
[ -1.0376712083816528, -0.0027886023744940758, -1.0764811038970947, 0.7156562209129333, -0.4065774083137512, -1.1145042181015015, 0.05349310114979744, -0.2679431736469269, 0.04208783805370331, -0.41781044006347656, -0.671349287033081, -0.24308495223522186, 1.011804461479187, -0.3104135692119...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate: The `setUTCDate()` method of `Date` instances changes the day of the month for this date according to universal time. Example: const event = new Date("August 19, 1975 23:15:30 GMT-3:00"); console.log(event.getUTCDate()); // Expected output: 20 event.setUTCDate(19); ...
[ -0.19272536039352417, -0.1600652039051056, -1.8925864696502686, 0.6766488552093506, -0.7117981910705566, -1.7241610288619995, -0.5120658278465271, 0.4989399015903473, 0.22329896688461304, 0.021259484812617302, 0.05095361918210983, 0.6270291805267334, 0.10264835506677628, 0.3493857085704803...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate - Syntax: Example: setUTCDate(dateValue)
[ -0.3260669708251953, 0.4157640039920807, -1.4852943420410156, 0.7200871109962463, -0.7633929252624512, -1.6679061651229858, 0.35545894503593445, 0.6675984263420105, 0.16855348646640778, -0.7066239714622498, 0.46824371814727783, 0.8092906475067139, 0.6996930241584778, 0.03700874000787735, ...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate - Syntax - Parameters: - `dateValue`: An integer from 1 to 31 representing the day of the month.
[ -0.31580254435539246, -0.028540723025798798, -1.3297340869903564, -0.18305213749408722, -0.23938973248004913, -1.7052384614944458, 0.11744831502437592, 1.0832685232162476, -0.04975447058677673, -0.297120064496994, 0.04721146076917648, 0.23466549813747406, 0.5233498811721802, 0.182152152061...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If `dateValue` is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -0.9396810531616211, 0.12291603535413742, -1.0215175151824951, 0.3764256536960602, -0.48487547039985657, -1.6207560300827026, 0.3150167763233185, 0.9061385989189148, -0.8754580616950989, 0.45845040678977966, 0.011771820485591888, 0.7232357859611511, 0.1311919391155243, 0.45313555002212524,...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate - Description: If the `dateValue` is outside of the range of date values for the month, `setDate()` will update the `Date` object accordingly. For example, if 0 is provided for `dateValue`, the date will be set to the last day of the previous month. If you use 40 for `d...
[ -1.2838401794433594, 0.15709252655506134, -1.3594871759414673, 0.5757165551185608, -0.15626809000968933, -2.009157657623291, 0.2031567543745041, 0.9623941779136658, -0.6151395440101624, -0.30668607354164124, 0.3237973153591156, 0.6070917844772339, -0.16986018419265747, 0.42095497250556946,...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate - Examples - Using setUTCDate(): Example: const theBigDay = new Date(); theBigDay.setUTCDate(20);
[ -0.7297765016555786, 0.506524920463562, -1.5555102825164795, 0.7841894030570984, -0.7177109122276306, -1.3765432834625244, 0.028289737179875374, -0.3635711371898651, 0.03246700018644333, -0.7527072429656982, -0.1340314894914627, 0.8477969765663147, 0.1855877786874771, 0.021956853568553925,...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset: The `getTimezoneOffset()` method of `Date` instances returns the difference, in minutes, between this date as evaluated in the UTC time zone, and the same date as evaluated in the local time zone. Example: const date1 = new Date("August 19, 1975 23:15:30 GMT+07...
[ -0.25289222598075867, -0.670578122138977, -1.5631481409072876, 0.4080565273761749, -0.05080975592136383, -2.001943826675415, -0.6875839829444885, 0.5125488042831421, -0.19095385074615479, 0.2280309647321701, -0.43610629439353943, 0.20879332721233368, -0.43640196323394775, 0.362386941909790...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Syntax: Example: getTimezoneOffset()
[ -0.07260748744010925, -0.0825602188706398, -1.114307165145874, -0.30606809258461, -0.5809498429298401, -2.310365676879883, 0.201449453830719, 0.9694064855575562, -0.46769243478775024, -0.5302298069000244, -0.3555678427219391, 0.1616959571838379, -0.3712077736854553, 0.06968250125646591, ...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Syntax - Parameters: None.
[ -0.05720619484782219, 0.03652191162109375, -1.2524951696395874, -0.4981682002544403, -0.44424906373023987, -1.651901125907898, 0.5568621754646301, 1.1875622272491455, -0.6945942640304565, -0.6634290814399719, -0.8120984435081482, -0.456007719039917, -0.14172153174877167, 0.2909033596515655...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Syntax - Return value: A number representing the difference, in minutes, between the date as evaluated in the UTC time zone and as evaluated in the local time zone. The actual local time algorithm is implementation-defined, and the return value is allowed to be ...
[ -0.6300026178359985, -0.2840035855770111, -0.6062601208686829, 0.0639997348189354, -0.4916274845600128, -1.5184448957443237, 0.32397642731666565, 0.590893566608429, -0.5818472504615784, 0.5641335844993591, -0.8821074366569519, 0.6414241790771484, -0.32207974791526794, 0.49380889534950256, ...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Description: `date.getTimezoneOffset()` returns the difference, in minutes, between `date` as evaluated in the UTC time zone and as evaluated in the local time zone — that is, the time zone of the host system in which the browser is being used (if the code is ru...
[ -0.9426590800285339, -0.1198405921459198, -1.5724079608917236, 0.36161163449287415, 0.09026321023702621, -1.7112351655960083, -0.24036669731140137, 0.5057844519615173, -0.4669642150402069, 0.0568401962518692, -0.29945364594459534, 0.1360563486814499, -0.574794590473175, 0.09859032928943634...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Description - Negative values and positive values: The number of minutes returned by `getTimezoneOffset()` is positive if the local time zone is behind UTC, and negative if the local time zone is ahead of UTC. For example, for UTC+10, `-600` will be returned. -...
[ -1.0405511856079102, -0.29167142510414124, -1.324989914894104, 0.08445743471384048, -0.3318054974079132, -1.7760673761367798, -0.275701642036438, 0.11665089428424835, -0.2587568461894989, 0.38321158289909363, -0.597140908241272, 0.7929590940475464, -0.5517244935035706, 0.14580413699150085,...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Description - Varied results in Daylight Saving Time (DST) regions: In a region that annually shifts in and out of Daylight Saving Time (DST), as `date` varies, the number of minutes returned by calling `getTimezoneOffset()` can be non-uniform. Note: `getTimezo...
[ -0.2826572358608246, 0.01928778924047947, -1.5919089317321777, -0.15957055985927582, -0.6525642275810242, -1.3836798667907715, 0.17447498440742493, 0.14208579063415527, -0.9096099734306335, -0.07690559327602386, -0.9174835085868835, 0.5520287752151489, -0.6580067276954651, -0.1106604859232...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Examples - Using getTimezoneOffset(): Example: // Create a Date instance for the current time const currentLocalDate = new Date(); // Create a Date instance for 03:24 GMT-0200 on May 1st in 2016 const laborDay2016at0324GMTminus2 = new Date("2016-05-01T03:24:00-...
[ -0.24085520207881927, -0.011507109738886356, -0.9265332818031311, 0.41144269704818726, 0.03283631429076195, -1.802655577659607, -0.18496078252792358, 0.199843630194664, -0.10387483984231949, -0.10985308140516281, -0.24629580974578857, 0.11088589578866959, -0.37450239062309265, -0.074312776...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Examples - getTimezoneOffset() and DST: In regions that use DST, the return value may change based on the time of the year `date` is in. Below is the output in a runtime in New York, where the timezone is UTC-05:00. Example: const nyOffsetSummer = new Date("20...
[ -0.5558314919471741, 0.12755966186523438, -1.5105875730514526, 0.23983608186244965, -0.502941370010376, -1.4714231491088867, -0.9980416297912598, 0.557488203048706, 0.11863214522600174, 0.28531214594841003, -0.8575475811958313, 0.5964232683181763, -0.3716733455657959, 0.09047617763280869, ...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Examples - getTimezoneOffset() and historical data: Due to historical reasons, the timezone a region is in can be constantly changing, even disregarding DST. For example, below is the output in a runtime in Shanghai, where the timezone is UTC+08:00. Example: c...
[ -1.0288269519805908, -0.01923215016722679, -1.6831895112991333, -0.09001001715660095, -0.5923221111297607, -1.3412787914276123, -0.8339280486106873, 1.0442107915878296, 0.3378937244415283, 0.0008533744839951396, -0.6853024363517761, 0.30488121509552, -0.6330887675285339, 0.0012001934228464...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate: The `setDate()` method of `Date` instances changes the day of the month for this date according to local time. Example: const event = new Date("August 19, 1975 23:15:30"); event.setDate(24); console.log(event.getDate()); // Expected output: 24 event.setDate(32); // On...
[ -0.5442187190055847, -0.6213412880897522, -1.4377954006195068, 0.5400128364562988, -0.32710400223731995, -1.7763664722442627, -0.7513988018035889, 0.761303186416626, -0.23960070312023163, 0.1507527232170105, -0.33087024092674255, 0.2196194976568222, 0.12800389528274536, 0.15807119011878967...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate - Syntax: Example: setDate(dateValue)
[ -0.44760748744010925, 0.3117894232273102, -0.9644489288330078, 0.3993404507637024, -0.604472815990448, -1.6561756134033203, 0.372149795293808, 1.1838351488113403, -0.33636724948883057, -0.8925008177757263, 0.16046634316444397, 0.6424850821495056, 0.8401438593864441, -0.11339060962200165, ...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate - Syntax - Parameters: - `dateValue`: An integer representing the day of the month.
[ -0.20765885710716248, -0.07582957297563553, -1.285285234451294, -0.1077089011669159, -0.3865053653717041, -1.9474231004714966, 0.5164984464645386, 1.522822618484497, -0.28493884205818176, -0.4387968182563782, -0.3288334608078003, -0.26770874857902527, 0.5865564346313477, 0.2306515276432037...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If `dateValue` is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -1.0575941801071167, -0.16286492347717285, -0.7992578744888306, 0.199357271194458, -0.3797459900379181, -1.7174644470214844, 0.20914222300052643, 1.1906557083129883, -1.1362385749816895, 0.30849888920783997, -0.38826364278793335, 0.4812243580818176, 0.12701182067394257, 0.4378001093864441,...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate - Description: If you specify a number outside the expected range, the date information in the `Date` object is updated accordingly. For example, if the `Date` object holds June 1st, a `dateValue` of 40 changes the date to July 10th, while a `dateValue` of 0 changes the dat...
[ -1.0949881076812744, -0.39719656109809875, -1.5435097217559814, 0.880892276763916, -0.48145171999931335, -2.3294730186462402, -0.5400382280349731, 0.411712110042572, -0.4462633728981018, 0.2476256787776947, -0.2977951765060425, -0.0058791013434529305, -0.11228132247924805, 0.40516912937164...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate - Examples - Using setDate(): Example: const theBigDay = new Date(1962, 6, 7, 12); // noon of 1962-07-07 (7th of July 1962, month is 0-indexed) const theBigDay2 = new Date(theBigDay).setDate(24); // 1962-07-24 (24th of July 1962) const theBigDay3 = new Date(theBigDay).setD...
[ -0.6391842365264893, 0.40238896012306213, -1.279543399810791, 0.4559086859226227, -0.259490042924881, -1.7111396789550781, -0.47677934169769287, 0.33837568759918213, 0.03968929126858711, -0.36318618059158325, -0.14789380133152008, 0.306810587644577, 0.14916108548641205, -0.071482814848423,...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf: The `valueOf()` method of `Date` instances returns the number of milliseconds for this date since the epoch, which is defined as the midnight at the beginning of January 1, 1970, UTC. Example: const date1 = new Date(Date.UTC(96, 1, 2, 3, 4, 5)); console.log(date1.valueO...
[ -0.5979984402656555, -0.7984111905097961, -0.8600603342056274, 0.45106935501098633, 0.04992714151740074, -0.8505316376686096, 0.19945144653320312, 0.5119831562042236, -0.20065775513648987, -0.040317222476005554, -0.32105037569999695, 0.5877630114555359, 0.7707854509353638, 0.56508648395538...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf - Syntax: Example: valueOf()
[ 0.05635526776313782, -0.09800926595926285, -0.5427848696708679, -0.1359269917011261, -0.47113439440727234, -1.6156549453735352, 0.7401472926139832, 1.2130497694015503, 0.059105515480041504, -0.8238623142242432, -0.4033300578594208, 0.5541657209396362, -0.043541762977838516, 0.2987114489078...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf - Syntax - Parameters: None.
[ -0.1601920872926712, 0.2846008837223053, -1.0441828966140747, -0.30597251653671265, -0.6144090890884399, -1.2579567432403564, 1.0236849784851074, 1.1581733226776123, -0.3738366961479187, -0.8455922603607178, -0.6304033398628235, -0.26794955134391785, 0.08394747972488403, 0.1735610812902450...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf - Syntax - Return value: A number representing the timestamp, in milliseconds, of this date. Returns `NaN` if the date is invalid.
[ -0.46988773345947266, -0.28894922137260437, -0.34731343388557434, -0.3074037432670593, -0.5723936557769775, -1.096055269241333, 0.602446973323822, 0.906582236289978, -0.747349202632904, 0.1534368097782135, -0.9536772966384888, 0.7163326740264893, 0.43385493755340576, 0.5240926146507263, ...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf - Description: The `valueOf()` method is part of the type coercion protocol. Because `Date` has a `[Symbol.toPrimitive]()` method, that method always takes priority over `valueOf()` when a `Date` object is implicitly coerced to a number. However, `Date.prototype[Symbol.toPr...
[ -0.8663100600242615, -0.40611135959625244, -0.5840985774993896, -0.23487825691699982, 0.2701433300971985, -1.1992485523223877, 0.5427345037460327, 0.8999916315078735, -0.7286017537117004, 0.39250850677490234, -1.2617624998092651, 0.17202109098434448, -0.06328386068344116, -0.02225529029965...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf - Examples - Using valueOf(): Example: const d = new Date(0); // 1970-01-01T00:00:00.000Z console.log(d.valueOf()); // 0
[ 0.1459517627954483, -0.07078356295824051, -1.0830928087234497, 0.5541406869888306, -0.12897630035877228, -1.0030889511108398, 0.16708454489707947, 0.24320346117019653, 0.28013110160827637, -0.7275933623313904, -0.3119378089904785, -0.06899514049291611, 0.34133148193359375, 0.15127925574779...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth: The `setUTCMonth()` method of `Date` instances changes the month and/or day of the month for this date according to universal time. Example: const event = new Date("December 31, 1975 23:15:30 GMT-3:00"); console.log(event.toUTCString()); // Expected output: "Thu, 01...
[ -0.2118608057498932, -0.1878519505262375, -1.6622439622879028, 0.47151511907577515, -0.4495311677455902, -1.764599323272705, -0.6690241098403931, 0.3396589457988739, 0.3407743275165558, -0.22176818549633026, 0.3148251473903656, 0.7179865837097168, 0.24964754283428192, 0.4534074068069458, ...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth - Syntax: Example: setUTCMonth(monthValue) setUTCMonth(monthValue, dateValue)
[ 0.14554159343242645, 0.3073151409626007, -1.9707716703414917, 0.42691391706466675, -0.9767968058586121, -1.8235058784484863, 0.26254141330718994, 0.47301799058914185, 0.2133745700120926, -0.7453563213348389, 0.39402490854263306, 0.38495320081710815, 0.5973223447799683, 0.19151215255260468,...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth - Syntax - Parameters: - `monthValue`: An integer representing the month: 0 for January, 1 for February, and so on. - `dateValue` (optional): An integer from 1 to 31 representing the day of the month.
[ -0.26666945219039917, 0.11306565254926682, -1.4277582168579102, -0.028541408479213715, -0.06224554777145386, -2.158271551132202, 0.2719805836677551, 0.4583829641342163, 0.07584301382303238, -0.186382457613945, -0.020244043320417404, 0.10369448363780975, 0.49583926796913147, 0.1391431987285...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If a parameter is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -0.6076833009719849, -0.08803556859493256, -1.210713267326355, 0.33702710270881653, -0.45992204546928406, -1.6055291891098022, 0.37348833680152893, 0.7878101468086243, -0.97947096824646, 0.47346583008766174, -0.1518429070711136, 0.6142375469207764, 0.2007162868976593, 0.7038528323173523, ...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth - Description: If you do not specify the `dateValue` parameter, the value returned from the `getUTCDate()` method is used. If a parameter you specify is outside of the expected range, `setUTCMonth()` attempts to update the date information in the `Date` object accordin...
[ -0.7580602169036865, -0.02158520184457302, -1.9704992771148682, 0.7865036725997925, -0.40432828664779663, -2.2198877334594727, 0.54768967628479, -0.032907627522945404, -0.37706947326660156, -0.29307207465171814, 0.2346966564655304, 0.5930060744285583, 0.15922024846076965, 0.451962411403656...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth - Examples - Using setUTCMonth(): Example: const theBigDay = new Date(); theBigDay.setUTCMonth(11);
[ -0.4188575744628906, 0.25082850456237793, -1.8602643013000488, 0.7475592494010925, -0.6606473922729492, -1.5696570873260498, -0.07702074944972992, -0.30108532309532166, 0.05669966712594032, -0.6336557865142822, -0.06447574496269226, 0.14905352890491486, 0.42730069160461426, 0.3128424584865...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString: The `toISOString()` method of `Date` instances returns a string representing this date in the date time string format, a simplified format based on ISO 8601, which is always 24 or 27 characters long (`YYYY-MM-DDTHH:mm:ss.sssZ` or `±YYYYYY-MM-DDTHH:mm:ss.sssZ`, respecti...
[ -1.3258440494537354, -0.29936882853507996, -0.5838966965675354, 0.26438823342323303, 0.4101914167404175, -2.0886123180389404, -0.7022935748100281, -0.1815328747034073, -0.7400470972061157, 0.33606767654418945, -0.06661266833543777, 0.6534802913665771, 0.26515161991119385, 0.490999102592468...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString - Syntax: Example: toISOString()
[ -1.1147308349609375, 0.2800690233707428, -0.47217610478401184, -0.009848092682659626, -0.29735565185546875, -2.4164414405822754, -0.11856537312269211, 0.6873317360877991, -0.7317783236503601, -0.3516843318939209, -0.17682936787605286, 0.1348385065793991, 0.20038354396820068, -0.06411948800...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString - Syntax - Parameters: None.
[ -0.7900578379631042, 0.42931950092315674, -0.7603246569633484, -0.42528656125068665, -0.3612927496433258, -1.9253536462783813, 0.5219123959541321, 0.9567585587501526, -0.6683996915817261, -0.49189484119415283, -0.6534495949745178, -0.4638965129852295, 0.29594138264656067, 0.126187756657600...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString - Syntax - Return value: A string representing the given date in the date time string format according to universal time. It's the same format as the one required to be recognized by `Date.parse()`.
[ -0.994385838508606, 0.39472195506095886, -0.6285114288330078, 0.22432440519332886, -0.18692882359027863, -2.0375478267669678, 0.23345205187797546, 0.7949237823486328, -0.6306190490722656, 0.30266767740249634, -0.34557467699050903, 0.8683245778083801, 0.43160372972488403, 0.8811507225036621...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString - Syntax - Exceptions: - `RangeError`: Thrown if the date is invalid or if it corresponds to a year that cannot be represented in the date string format.
[ -0.8882284164428711, 0.30892595648765564, -0.3635103106498718, 0.3641144931316376, 0.08077191561460495, -2.9406371116638184, -0.24465449154376984, 0.8761517405509949, -1.037782073020935, 0.15792518854141235, -0.6184767484664917, 0.056787408888339996, -0.5891280174255371, -0.085729375481605...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString - Examples - Using toISOString(): Example: const d = new Date(0); console.log(d.toISOString()); // "1970-01-01T00:00:00.000Z"
[ -0.6103430986404419, 0.3272719979286194, -0.872517466545105, 0.39618775248527527, 0.03960337117314339, -2.034590721130371, -0.13808807730674744, -0.03293821960687637, -0.32890942692756653, -0.33829331398010254, -0.23628529906272888, -0.2446826845407486, 0.316768079996109, 0.016617298126220...
javascript/reference/global_objects/date/getutcmilliseconds/index.md
JavaScript - Global Objects - Date - getUTCMilliseconds: The `getUTCMilliseconds()` method of `Date` instances returns the milliseconds for this date according to universal time. Example: const exampleDate = new Date("2018-01-02T03:04:05.678Z"); // 2 January 2018, 03:04:05.678 (UTC) console.log(exampleDate.getUTCMi...
[ -0.9469283223152161, 0.24605689942836761, -1.7289783954620361, 0.32645249366760254, -0.27387914061546326, -1.4537166357040405, -0.4238623082637787, -0.15185445547103882, -0.11658499389886856, 0.2788566052913666, -0.13776274025440216, 0.3933010697364807, 1.1684165000915527, 0.35017979145050...
javascript/reference/global_objects/date/getutcmilliseconds/index.md
JavaScript - Global Objects - Date - getUTCMilliseconds - Syntax: Example: getUTCMilliseconds()
[ -0.5750849843025208, 0.29563000798225403, -1.864720344543457, 0.19040338695049286, -0.7856560349464417, -1.7948877811431885, -0.1911608874797821, 0.3007448613643646, 0.043359942734241486, -0.17748166620731354, 0.03535044193267822, 0.2857149541378021, 0.5723972916603088, 0.1546919345855713,...
javascript/reference/global_objects/date/getutcmilliseconds/index.md
JavaScript - Global Objects - Date - getUTCMilliseconds - Syntax - Parameters: None.
[ -0.6201319694519043, 0.3703385293483734, -1.7017306089401245, -0.20247243344783783, -0.5997112393379211, -1.241937279701233, 0.3467051088809967, 0.7512007355690002, -0.01137484796345234, -0.40166717767715454, -0.19352199137210846, -0.22884178161621094, 0.598991870880127, 0.1166237443685531...
javascript/reference/global_objects/date/getutcmilliseconds/index.md
JavaScript - Global Objects - Date - getUTCMilliseconds - Syntax - Return value: An integer, between 0 and 999, representing the milliseconds for the given date according to universal time. Returns `NaN` if the date is invalid. Not to be confused with the timestamp. To get the total milliseconds since the epoch, use ...
[ -1.0212714672088623, 0.12442964315414429, -1.166516661643982, 0.1711881160736084, -0.3681206703186035, -1.0818531513214111, 0.09258096665143967, 0.25648969411849976, -0.5278581976890564, 0.39923128485679626, -0.4565923511981964, 0.9558489322662354, 0.7523577809333801, 0.18280071020126343, ...
javascript/reference/global_objects/date/getutcmilliseconds/index.md
JavaScript - Global Objects - Date - getUTCMilliseconds - Examples - Using getUTCMilliseconds(): The following example assigns the milliseconds portion of the current time to the variable `milliseconds`. Example: const today = new Date(); const milliseconds = today.getUTCMilliseconds();
[ -0.9689359068870544, 0.44152331352233887, -1.7886966466903687, 0.665164053440094, -0.43419960141181946, -1.0599650144577026, -0.04698561877012253, -0.18803554773330688, 0.6408467888832092, -0.09743539988994598, -0.3133006989955902, 0.09026964753866196, 0.48994138836860657, 0.23496305942535...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds: The `setUTCMilliseconds()` method of `Date` instances changes the milliseconds for this date according to universal time. Example: const date = new Date("2018-01-24T12:38:29.069Z"); console.log(date.getUTCMilliseconds()); // Expected output: 69 date.setUTCMi...
[ -0.9829894304275513, -0.055530667304992676, -1.583282709121704, 0.6547296047210693, -0.3778702914714813, -1.2640106678009033, -0.862765908241272, -0.020611081272363663, 0.24340569972991943, 0.009787814691662788, -0.44244420528411865, 0.21620970964431763, 0.9053210616111755, 0.1467282176017...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds - Syntax: Example: setUTCMilliseconds(millisecondsValue)
[ -0.6968115568161011, 0.34899190068244934, -1.5460219383239746, 0.6740162372589111, -0.7561588883399963, -1.435088872909546, 0.025966979563236237, 0.46918976306915283, 0.3743705451488495, -0.510762095451355, -0.025553178042173386, 0.4486566483974457, 1.1004661321640015, -0.13539095222949982...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds - Syntax - Parameters: - `millisecondsValue`: An integer between 0 and 999 representing the milliseconds.
[ -0.7548691630363464, -0.03938908502459526, -1.1813334226608276, 0.19665277004241943, -0.360507607460022, -0.9341567754745483, -0.41753754019737244, 0.5911083817481995, 0.5322135090827942, -0.33570584654808044, -0.7098510265350342, 0.32877153158187866, 0.8640764355659485, -0.242189615964889...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If `millisecondsValue` is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -1.0995005369186401, 0.041460469365119934, -0.8684324026107788, 0.40133291482925415, -0.3792957067489624, -1.4618946313858032, 0.4087012708187103, 0.6180265545845032, -0.6079109311103821, 0.446077436208725, -0.5047736167907715, 0.498598575592041, 0.4675751030445099, 0.22118037939071655, ...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds - Description: If a parameter you specify is outside of the expected range, `setUTCMilliseconds()` attempts to update the date information in the `Date` object accordingly. For example, if you use 1100 for `millisecondsValue`, the seconds stored in the `Date` obj...
[ -1.339985728263855, -0.17240837216377258, -1.7723805904388428, 1.254171371459961, -0.3040652275085449, -1.9570385217666626, 0.06397783011198044, -0.11559688299894333, 0.08737735450267792, -0.2889125943183899, -0.6104006767272949, 0.5177100896835327, 0.32627764344215393, 0.06503302603960037...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds - Examples - Using setUTCMilliseconds(): Example: const theBigDay = new Date(); theBigDay.setUTCMilliseconds(500);
[ -0.8824619650840759, 0.3149028420448303, -1.6420375108718872, 1.057794451713562, -0.5593191981315613, -1.106728196144104, -0.2274380624294281, -0.3024010956287384, 0.17719456553459167, -0.5844097137451172, -0.3019399642944336, 0.21248425543308258, 0.775646448135376, -0.22270937263965607, ...
javascript/reference/global_objects/date/setyear/index.md
JavaScript - Global Objects - Date - setYear: Deprecated: This feature is no longer recommended. The `setYear()` method of `Date` instances sets the year for a specified date according to local time. However, the way the legacy `setYear()` method sets year values is different from how the preferred `setFullYear()` m...
[ -1.0838228464126587, 0.20607784390449524, -1.5075634717941284, 0.38473132252693176, 0.0057214368134737015, -2.523496389389038, -0.07366769760847092, 0.8806871771812439, -0.11219995468854904, 0.3442458510398865, -0.6332820057868958, 0.5997657179832458, -0.2830164432525635, 0.671767592430114...
javascript/reference/global_objects/date/setyear/index.md
JavaScript - Global Objects - Date - setYear - Syntax: Example: setYear(yearValue)
[ -0.44437268376350403, 0.5559649467468262, -0.785028874874115, 0.2623567283153534, -0.43300965428352356, -1.9482395648956299, 0.016814857721328735, 1.183606743812561, -0.08332115411758423, -0.5601394772529602, 0.10429554432630539, 0.5725569128990173, 0.28673064708709717, 0.3317541778087616,...