Skip to content

Commit 1acfe8c

Browse files
committed
Added methods "GetYear", "SetYear", and "ToGMTString" to the Date object.
1 parent a818390 commit 1acfe8c

File tree

1 file changed

+17
-5
lines changed
  • CSharpToJavaScript/APIs/JS/Ecma

1 file changed

+17
-5
lines changed

CSharpToJavaScript/APIs/JS/Ecma/Date.cs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ public float GetDay()
4848
throw new System.NotImplementedException();
4949
}
5050

51-
//does not exists in es14
52-
public float GetYear()
53-
{
54-
throw new System.NotImplementedException();
55-
}
5651
public float GetFullYear()
5752
{
5853
throw new System.NotImplementedException();
@@ -257,5 +252,22 @@ public string ToUTCString()
257252
{
258253
throw new System.NotImplementedException();
259254
}
255+
256+
//https://ecma-international.org/wp-content/uploads/ECMA-262_3rd_edition_december_1999.pdf
257+
//B.2.4
258+
public float GetYear()
259+
{
260+
throw new System.NotImplementedException();
261+
}
262+
//B.2.5
263+
public float SetYear(float year)
264+
{
265+
throw new System.NotImplementedException();
266+
}
267+
//B.2.6
268+
public string ToGMTString()
269+
{
270+
throw new System.NotImplementedException();
271+
}
260272
}
261273

0 commit comments

Comments
 (0)