C# Class Schumix.Libraries.Lib

ファイルを表示 Open project: Schumix/Schumix2

Public Methods

Method Description
GetDateTimeFromUnixTime ( long unixTime ) : System.DateTime

Gets the date time from unix time.

GetEpochTime ( ) : long

Gets the time since the Unix epoch.

GetEpochTimeFromDT ( ) : long

Gets the time between the Unix epich and a specific time.

GetEpochTimeFromDT ( System.DateTime time ) : long

Gets the time between the Unix epich and a specific time.

GetNetVersion ( ) : string
GetOSName ( ) : string

Returns the name of the operating system running on this computer.

GetPlatform ( ) : string
GetSystemTime ( ) : long

Gets the system uptime.

GetSystemTimeLong ( ) : long

Gets the system uptime.

Even though this returns a long, the original value is a 32-bit integer, so it will wrap back to 0 after approximately 49 and half days of system uptime.

GetUTCTimeMillis ( long millis ) : System.DateTime

Gets the UTC time from millis.

GetUTCTimeSeconds ( long seconds ) : System.DateTime

Gets the UTC time from seconds.

GetUnixTimeStart ( ) : System.DateTime
GetVersion ( ) : string
IsDay ( int Year, int Month, int Day ) : bool
IsPrime ( this x ) : bool
Regex ( this text, string regex ) : string
Regex ( this text, string regex, string groups ) : string
ToMilliSecondsInt ( int ticks ) : int

Converts ticks to miliseconds.

ToMilliSecondsInt ( this time ) : int

Converts DateTime to miliseconds.

print ( object o ) : void
print ( string text ) : void
printf ( object o ) : void
printf ( string text ) : void

Private Methods

Method Description
GetCpuId ( ) : string

Method Details

GetDateTimeFromUnixTime() public static method

Gets the date time from unix time.
public static GetDateTimeFromUnixTime ( long unixTime ) : System.DateTime
unixTime long The unix time.
return System.DateTime

GetEpochTime() public static method

Gets the time since the Unix epoch.
public static GetEpochTime ( ) : long
return long

GetEpochTimeFromDT() public static method

Gets the time between the Unix epich and a specific time.
public static GetEpochTimeFromDT ( ) : long
return long

GetEpochTimeFromDT() public static method

Gets the time between the Unix epich and a specific time.
public static GetEpochTimeFromDT ( System.DateTime time ) : long
time System.DateTime the end time
return long

GetNetVersion() public static method

public static GetNetVersion ( ) : string
return string

GetOSName() public static method

Returns the name of the operating system running on this computer.
public static GetOSName ( ) : string
return string

GetPlatform() public static method

public static GetPlatform ( ) : string
return string

GetSystemTime() public static method

Gets the system uptime.
public static GetSystemTime ( ) : long
return long

GetSystemTimeLong() public static method

Gets the system uptime.
Even though this returns a long, the original value is a 32-bit integer, so it will wrap back to 0 after approximately 49 and half days of system uptime.
public static GetSystemTimeLong ( ) : long
return long

GetUTCTimeMillis() public static method

Gets the UTC time from millis.
public static GetUTCTimeMillis ( long millis ) : System.DateTime
millis long The millis.
return System.DateTime

GetUTCTimeSeconds() public static method

Gets the UTC time from seconds.
public static GetUTCTimeSeconds ( long seconds ) : System.DateTime
seconds long The seconds.
return System.DateTime

GetUnixTimeStart() public static method

public static GetUnixTimeStart ( ) : System.DateTime
return System.DateTime

GetVersion() public static method

public static GetVersion ( ) : string
return string

IsDay() public static method

public static IsDay ( int Year, int Month, int Day ) : bool
Year int
Month int
Day int
return bool

IsPrime() public static method

public static IsPrime ( this x ) : bool
x this
return bool

Regex() public static method

public static Regex ( this text, string regex ) : string
text this
regex string
return string

Regex() public static method

public static Regex ( this text, string regex, string groups ) : string
text this
regex string
groups string
return string

ToMilliSecondsInt() public static method

Converts ticks to miliseconds.
public static ToMilliSecondsInt ( int ticks ) : int
ticks int
return int

ToMilliSecondsInt() public static method

Converts DateTime to miliseconds.
public static ToMilliSecondsInt ( this time ) : int
time this
return int

print() public static method

public static print ( object o ) : void
o object
return void

print() public static method

public static print ( string text ) : void
text string
return void

printf() public static method

public static printf ( object o ) : void
o object
return void

printf() public static method

public static printf ( string text ) : void
text string
return void