mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-11 18:51:41 +00:00
28 lines
847 B
C#
28 lines
847 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Kernel {
|
|
public class StringFuncs {
|
|
public static string BoolString(bool aValue) {
|
|
if (aValue) {
|
|
return "true";
|
|
} else {
|
|
return "false";
|
|
}
|
|
}
|
|
|
|
//TODO: convert to return string...
|
|
public static string TimeString() {
|
|
Console.Write("Time: ");
|
|
Hardware.Storage.ATAOld.WriteNumber(Hardware.RTC.GetHours(), 8);
|
|
Console.Write(":");
|
|
Hardware.Storage.ATAOld.WriteNumber(Hardware.RTC.GetMinutes(), 8);
|
|
Console.Write(":");
|
|
Hardware.Storage.ATAOld.WriteNumber(Hardware.RTC.GetSeconds(), 8);
|
|
Console.WriteLine("");
|
|
return "";
|
|
}
|
|
|
|
}
|
|
}
|