-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDate.cs
More file actions
261 lines (212 loc) · 5.19 KB
/
Date.cs
File metadata and controls
261 lines (212 loc) · 5.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
//TODO! Disable missing XML comments.
#pragma warning disable CS1591
using CSharpToJavaScript.Utils;
namespace CSharpToJavaScript.APIs.JS.Ecma;
//https://262.ecma-international.org/14.0/#sec-date-objects
[To(ToAttribute.Default)]
public partial class Date : DatePrototype
{
[To(ToAttribute.FirstCharToLowerCase)]
public static DatePrototype Prototype { get; } = new();
public Date() { }
public Date(string value) { }
public Date(params float[] values) { }
[To(ToAttribute.FirstCharToLowerCase)]
public static float Now()
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static float Parse(string str)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.Default)]
public static float UTC(float year, float month = 0, float date = 1, float hours = 0, float minutes = 0, float seconds = 0, float ms = 0)
{
throw new System.NotImplementedException();
}
}
[To(ToAttribute.FirstCharToLowerCase)]
public class DatePrototype : FunctionPrototype
{
public float GetDate()
{
throw new System.NotImplementedException();
}
public float GetDay()
{
throw new System.NotImplementedException();
}
//does not exists in es14
public float GetYear()
{
throw new System.NotImplementedException();
}
public float GetFullYear()
{
throw new System.NotImplementedException();
}
public float GetHours()
{
throw new System.NotImplementedException();
}
public float GetMilliseconds()
{
throw new System.NotImplementedException();
}
public float GetMinutes()
{
throw new System.NotImplementedException();
}
public float GetMonth()
{
throw new System.NotImplementedException();
}
public float GetSeconds()
{
throw new System.NotImplementedException();
}
public float GetTime()
{
throw new System.NotImplementedException();
}
public float GetTimezoneOffset()
{
throw new System.NotImplementedException();
}
public float GetUTCDate()
{
throw new System.NotImplementedException();
}
public float GetUTCDay()
{
throw new System.NotImplementedException();
}
public float GetUTCFullYear()
{
throw new System.NotImplementedException();
}
public float GetUTCHours()
{
throw new System.NotImplementedException();
}
public float GetUTCMilliseconds()
{
throw new System.NotImplementedException();
}
public float GetUTCMinutes()
{
throw new System.NotImplementedException();
}
public float GetUTCMonth()
{
throw new System.NotImplementedException();
}
public float GetUTCSeconds()
{
throw new System.NotImplementedException();
}
public float SetDate(float date)
{
throw new System.NotImplementedException();
}
public float SetFullYear(float year, float? month = null, float? date = null)
{
throw new System.NotImplementedException();
}
public float SetHours(float hour, float? min = null, float? sec = null, float? ms = null)
{
throw new System.NotImplementedException();
}
public float SetMilliseconds(float ms)
{
throw new System.NotImplementedException();
}
public float SetMinutes(float min, float? sec = null, float? ms = null)
{
throw new System.NotImplementedException();
}
public float SetMonth(float month, float? date = null)
{
throw new System.NotImplementedException();
}
public float SetSeconds(float sec, float? ms = null)
{
throw new System.NotImplementedException();
}
public float SetTime(float time)
{
throw new System.NotImplementedException();
}
public float SetUTCDate(float date)
{
throw new System.NotImplementedException();
}
public float SetUTCFullYear(float year, float? month = null, float? date = null)
{
throw new System.NotImplementedException();
}
public float SetUTCHours(float hour, float? min = null, float? sec = null, float? ms = null)
{
throw new System.NotImplementedException();
}
public float SetUTCMilliseconds(float ms)
{
throw new System.NotImplementedException();
}
public float SetUTCMinutes(float min, float? sec = null, float? ms = null)
{
throw new System.NotImplementedException();
}
public float SetUTCMonth(float month, float? date = null)
{
throw new System.NotImplementedException();
}
public float SetUTCSeconds(float sec, float? ms = null)
{
throw new System.NotImplementedException();
}
public string ToDateString()
{
throw new System.NotImplementedException();
}
public string ToISOString()
{
throw new System.NotImplementedException();
}
public string ToJSON(dynamic key)
{
throw new System.NotImplementedException();
}
public string ToLocaleDateString(dynamic? reserved1 = null, dynamic? reserved2 = null)
{
throw new System.NotImplementedException();
}
/*
public override string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
{
throw new System.NotImplementedException();
}
*/
public string ToLocaleTimeString(dynamic? reserved1 = null, dynamic? reserved2 = null)
{
throw new System.NotImplementedException();
}
public new string ToString()
{
throw new System.NotImplementedException();
}
public string ToTimeString()
{
throw new System.NotImplementedException();
}
public string ToUTCString()
{
throw new System.NotImplementedException();
}
public new float ValueOf()
{
throw new System.NotImplementedException();
}
}