mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
Convert fix.
This commit is contained in:
parent
890152d8e7
commit
a44f62a9ac
2 changed files with 12 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ namespace Cosmos.Core.Plugs.System
|
|||
public static DateTime get_Now()
|
||||
{
|
||||
int[] raw = GetRawDate();
|
||||
|
||||
|
||||
return new DateTime(
|
||||
100 * BCDtoBIN(raw[10]) + BCDtoBIN(raw[9]), //YEAR
|
||||
BCDtoBIN(raw[8]), //MONTH
|
||||
|
|
@ -51,7 +51,12 @@ namespace Cosmos.Core.Plugs.System
|
|||
|
||||
return raw;
|
||||
}
|
||||
|
||||
|
||||
public static int ToString(ref decimal aThis)
|
||||
{
|
||||
throw new NotImplementedException("DateTime.ToString()");
|
||||
}
|
||||
|
||||
public static long GetSystemTimeAsFileTime() => get_Now().Ticks;
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -15,5 +15,10 @@ namespace Cosmos.System.Plugs.System
|
|||
{
|
||||
throw new NotImplementedException("Decimal.GetHashCode()");
|
||||
}
|
||||
|
||||
public static int ToString(ref decimal aThis)
|
||||
{
|
||||
throw new NotImplementedException("Decimal.ToString()");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue