ソースを参照

[cs] nadako's new Date causes problems

Simon Krajewski 9 年 前
コミット
f20ea4c22b
1 ファイル変更5 行追加5 行削除
  1. 5 5
      std/cs/_std/Date.hx

+ 5 - 5
std/cs/_std/Date.hx

@@ -32,11 +32,6 @@ import haxe.Int64;
 	@:readOnly private static var epochTicks:Int64 = new DateTime(1970, 1, 1).Ticks;
 	private var date:DateTime;
 
-	@:overload private function new(native:DateTime)
-	{
-		date = native;
-	}
-
 	@:overload public function new(year : Int, month : Int, day : Int, hour : Int, min : Int, sec : Int ) : Void
 	{
 		if (day <= 0) day = 1;
@@ -44,6 +39,11 @@ import haxe.Int64;
 		date = new DateTime(year, month + 1, day, hour, min, sec);
 	}
 
+	@:overload private function new(native:DateTime)
+	{
+		date = native;
+	}
+
 	public inline function getTime() : Float
 	{
 		return cast(date.Ticks - epochTicks, Float) / cast(TimeSpan.TicksPerMillisecond, Float);