**** Merged from MCS ****
[mono-project.git] / mcs / class / Microsoft.JScript / Microsoft.JScript / DatePrototype.cs
blob00f6a00ea4b124db47172b915bb98bf7d67562a0
1 //
2 // DataPrototype.cs:
3 //
4 // Author:
5 // Cesar Lopez Nataren (cesar@ciencias.unam.mx)
6 //
7 // (C) Cesar Lopez Nataren
8 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 //
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 //
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System;
33 namespace Microsoft.JScript {
35 public class DatePrototype : DateObject
37 public static DateConstructor constructor {
38 get { throw new NotImplementedException (); }
41 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getDate)]
42 public static double getDate (object thisObj)
44 throw new NotImplementedException ();
47 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getDay)]
48 public static double getDay (object thisObj)
50 throw new NotImplementedException ();
53 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getFullYear)]
54 public static double getFullYear (object thisObj)
56 throw new NotImplementedException ();
59 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getHours)]
60 public static double getHours (object thisObj)
62 throw new NotImplementedException ();
65 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getMilliseconds)]
66 public static double getMilliseconds (object thisObj)
68 throw new NotImplementedException ();
71 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getMinutes)]
72 public static double getMinutes (object thisObj)
74 throw new NotImplementedException ();
77 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getMonth)]
78 public static double getMonth (object thisObj)
80 throw new NotImplementedException ();
83 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getSeconds)]
84 public static double getSeconds (object thisObj)
86 throw new NotImplementedException ();
89 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getTime)]
90 public static double getTime (object thisObj)
92 throw new NotImplementedException ();
95 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getTimezoneOffset)]
96 public static double getTimezoneOffset (object thisObj)
98 throw new NotImplementedException ();
101 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getUTCDate)]
102 public static double getUTCDate (object thisObj)
104 throw new NotImplementedException ();
107 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getUTCDay)]
108 public static double getUTCDay (object thisObj)
110 throw new NotImplementedException ();
113 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getUTCFullYear)]
114 public static double getUTCFullYear (object thisObj)
116 throw new NotImplementedException ();
119 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getUTCHours)]
120 public static double getUTCHours (object thisObj)
122 throw new NotImplementedException ();
125 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getUTCMilliseconds)]
126 public static double getUTCMilliseconds (object thisObj)
128 throw new NotImplementedException ();
131 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getUTCMinutes)]
132 public static double getUTCMinutes (object thisObj)
134 throw new NotImplementedException ();
137 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getUTCMonth)]
138 public static double getUTCMonth (object thisObj)
140 throw new NotImplementedException ();
143 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getUTCSeconds)]
144 public static double getUTCSeconds (object thisObj)
146 throw new NotImplementedException ();
149 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getVarDate)]
150 public static object getVarDate (object thisObj)
152 throw new NotImplementedException ();
155 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getYear)]
156 public static double getYear (object thisObj)
158 throw new NotImplementedException ();
161 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setDate)]
162 public static double setDate (object thisObj, double ddate)
164 throw new NotImplementedException ();
167 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setFullYear)]
168 public static double setFullYear (object thisObj, double dyear,
169 object month, object date)
171 throw new NotImplementedException ();
174 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setHours)]
175 public static double setHours (object thisObj, double dhour, object min,
176 object sec, object msec)
178 throw new NotImplementedException ();
181 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setMinutes)]
182 public static double setMinutes (object thisObj, double dmin,
183 object sec, object msec)
185 throw new NotImplementedException ();
188 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setMilliseconds)]
189 public static double setMilliseconds (object thisObj, double dmsec)
191 throw new NotImplementedException ();
194 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setMonth)]
195 public static double setMonth (object thisObj, double dmonth,
196 object date)
198 throw new NotImplementedException ();
201 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setSeconds)]
202 public static double setSeconds (object thisObj, double dsec, object msec)
204 throw new NotImplementedException ();
207 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setTime)]
208 public static double setTime (object thisObj, double time)
210 throw new NotImplementedException ();
213 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setUTCDate)]
214 public static double setUTCDate (object thisObj, double ddate)
216 throw new NotImplementedException ();
219 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setUTCFullYear)]
220 public static double setUTCFullYear (object thisObj, double dyear,
221 object month, object date)
223 throw new NotImplementedException ();
226 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setUTCHours)]
227 public static double setUTCHours (object thisObj, double dhour,
228 object min, object sec, object msec)
230 throw new NotImplementedException ();
233 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setUTCMinutes)]
234 public static double setUTCMinutes (object thisObj, double dmin,
235 object sec, object msec)
237 throw new NotImplementedException ();
240 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setUTCMilliseconds)]
241 public static double setUTCMilliseconds (object thisObj, double msec)
243 throw new NotImplementedException ();
246 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setUTCMonth)]
247 public static double setUTCMonth (object thisObj, double dmonth, object date)
249 throw new NotImplementedException ();
252 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setUTCSeconds)]
253 public static double setUTCSeconds (object thisObj, double dsec, object msec)
255 throw new NotImplementedException ();
258 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_setYear)]
259 public static double setYear (object thisObj, double dyear)
261 throw new NotImplementedException ();
264 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_toDateString)]
265 public static string toDateString (object thisObj)
267 throw new NotImplementedException ();
270 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_toGMTString)]
271 public static string toGMTString (object thisObj)
273 throw new NotImplementedException ();
276 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_toLocaleDateString)]
277 public static string toLocaleDateString (object thisObj)
279 throw new NotImplementedException ();
282 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_toLocaleString)]
283 public static string toLocaleString (object thisObj)
285 throw new NotImplementedException ();
288 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_toLocaleTimeString)]
289 public static string toLocaleTimeString (object thisObj)
291 throw new NotImplementedException ();
294 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_toString)]
295 public static string toString (object thisObj)
297 throw new NotImplementedException ();
300 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_toTimeString)]
301 public static string toTimeString (object thisObj)
303 throw new NotImplementedException ();
306 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_toUTCString)]
307 public static string toUTCString (object thisObj)
309 throw new NotImplementedException ();
312 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_valueOf)]
313 public static double valueOf (object thisObj)
315 throw new NotImplementedException ();